Class: FormCheckout
- Inherits:
-
Object
- Object
- FormCheckout
- Includes:
- Forms::Models::Extension, Shop::Models::FormExtension
- Defined in:
- app/models/form_checkout.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
writeonly
Sets the attribute card.
-
#config ⇒ Object
Returns the value of attribute config.
-
#data ⇒ Object
Returns the value of attribute data.
-
#gateway ⇒ Object
writeonly
Sets the attribute gateway.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
Methods included from Shop::Models::FormExtension
Instance Attribute Details
#card=(value) ⇒ Object
Sets the attribute card
5 6 7 |
# File 'app/models/form_checkout.rb', line 5 def card=(value) @card = value end |
#config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'app/models/form_checkout.rb', line 5 def config @config end |
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'app/models/form_checkout.rb', line 5 def data @data end |
#gateway=(value) ⇒ Object
Sets the attribute gateway
5 6 7 |
# File 'app/models/form_checkout.rb', line 5 def gateway=(value) @gateway = value end |
#result ⇒ Object
Returns the value of attribute result.
5 6 7 |
# File 'app/models/form_checkout.rb', line 5 def result @result end |
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/models/form_checkout.rb', line 7 def create find_current_order # locate the @order object create_result_object # A default response object create_order_payments @result end |