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