Class: FormAddress

Inherits:
Object
  • Object
show all
Includes:
Forms::Models::Extension, Shop::Models::FormExtension
Defined in:
app/models/form_address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Shop::Models::FormExtension

included

Instance Attribute Details

#billing=(value) ⇒ Object

Sets the attribute billing

Parameters:

  • value

    the value to set the attribute billing to.



5
6
7
# File 'app/models/form_address.rb', line 5

def billing=(value)
  @billing = value
end

#cardObject

Returns the value of attribute card.



5
6
7
# File 'app/models/form_address.rb', line 5

def card
  @card
end

#configObject

Returns the value of attribute config.



5
6
7
# File 'app/models/form_address.rb', line 5

def config
  @config
end

#dataObject

Returns the value of attribute data.



5
6
7
# File 'app/models/form_address.rb', line 5

def data
  @data
end

#gatewayObject

Returns the value of attribute gateway.



5
6
7
# File 'app/models/form_address.rb', line 5

def gateway
  @gateway
end

#resultObject

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

Parameters:

  • value

    the value to set the attribute shipping to.



5
6
7
# File 'app/models/form_address.rb', line 5

def shipping=(value)
  @shipping = value
end

Instance Method Details

#createObject



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