Class: Corzinus::UpdateAddress

Inherits:
Checkout::AddressStep show all
Defined in:
app/commands/corzinus/update_address.rb

Instance Attribute Summary

Attributes inherited from Checkout::AddressStep

#addressable, #addresses, #params

Instance Method Summary collapse

Methods inherited from Checkout::AddressStep

#call

Methods included from AddressableAttrubutes

#address_by_params, #addresses_by_model, #addresses_by_params, #set_countries

Constructor Details

#initialize(options) ⇒ UpdateAddress

Returns a new instance of UpdateAddress.



3
4
5
6
7
# File 'app/commands/corzinus/update_address.rb', line 3

def initialize(options)
  @addressable = options[:addressable]
  @params = options[:params]
  @addresses = [address_by_params(params[:address])]
end