Module: ActsAsPurchasableParent::ClassMethods
- Defined in:
- app/models/concerns/acts_as_purchasable_parent.rb
Instance Method Summary collapse
- #acts_as_purchasable_parent? ⇒ Boolean
- #after_decline(&block) ⇒ Object
- #after_defer(&block) ⇒ Object
- #after_purchase(&block) ⇒ Object
- #before_decline(&block) ⇒ Object
- #before_defer(&block) ⇒ Object
- #before_purchase(&block) ⇒ Object
Instance Method Details
#acts_as_purchasable_parent? ⇒ Boolean
14 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 14 def acts_as_purchasable_parent?; true; end |
#after_decline(&block) ⇒ Object
36 37 38 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 36 def after_decline(&block) send :define_method, :after_decline do |order| self.instance_exec(order, &block) end end |
#after_defer(&block) ⇒ Object
20 21 22 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 20 def after_defer(&block) send :define_method, :after_defer do |order| self.instance_exec(order, &block) end end |
#after_purchase(&block) ⇒ Object
28 29 30 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 28 def after_purchase(&block) send :define_method, :after_purchase do |order| self.instance_exec(order, &block) end end |
#before_decline(&block) ⇒ Object
32 33 34 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 32 def before_decline(&block) send :define_method, :before_decline do |order| self.instance_exec(order, &block) end end |
#before_defer(&block) ⇒ Object
16 17 18 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 16 def before_defer(&block) send :define_method, :before_defer do |order| self.instance_exec(order, &block) end end |
#before_purchase(&block) ⇒ Object
24 25 26 |
# File 'app/models/concerns/acts_as_purchasable_parent.rb', line 24 def before_purchase(&block) send :define_method, :before_purchase do |order| self.instance_exec(order, &block) end end |