Methods
- N
- R
Attributes
| [R] | code | |
| [R] | coupon | |
| [R] | plan | |
| [R] | site |
Class Public methods
new(args = {}) Link
Source: show
# File app/actions/action/billing/coupon.rb, line 6 def initialize(args = {}) @plan = args.fetch(:plan) @site = plan.site @code = format(code: args.fetch(:code)) @coupon = get_coupon end