Class: ForteRuby::Resourses::Addresses

Inherits:
API::Objects show all
Defined in:
lib/forte_ruby/resourses/addresses.rb

Instance Attribute Summary collapse

Attributes inherited from API::Base

#request_data

Instance Method Summary collapse

Methods inherited from API::Objects

#all, #filter, #find_by_id

Methods inherited from API::Base

#initialize

Constructor Details

This class inherits a constructor from ForteRuby::API::Base

Instance Attribute Details

#customer_tokenObject

Returns the value of attribute customer_token.



5
6
7
# File 'lib/forte_ruby/resourses/addresses.rb', line 5

def customer_token
  @customer_token
end

Instance Method Details

#build_from(params) ⇒ Object



7
8
9
# File 'lib/forte_ruby/resourses/addresses.rb', line 7

def build_from(params)
  single_class.new(params.merge(request_data: request_data, new: true, customer_token: customer_token))
end