Class: ShipEngine::Domain::Rates::GetWithShipmentDetails::Response::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/shipengine/domain/rates/get_with_shipment_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, phone:, company_name:, address_line1:, address_line2:, address_line3:, city_locality:, state_province:, postal_code:, country_code:, address_residential_indicator:) ⇒ Address

rubocop:todo Metrics/ParameterLists



95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 95

def initialize(name:, phone:, company_name:, address_line1:, address_line2:, address_line3:, city_locality:, state_province:, postal_code:, country_code:, address_residential_indicator:) # rubocop:todo Metrics/ParameterLists
  @name = name
  @phone = phone
  @company_name = company_name
  @address_line1 = address_line1
  @address_line2 = address_line2
  @address_line3 = address_line3
  @city_locality = city_locality
  @state_province = state_province
  @postal_code = postal_code
  @country_code = country_code
  @address_residential_indicator = address_residential_indicator
end

Instance Attribute Details

#address_line1Object (readonly)

Returns the value of attribute address_line1.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def address_line1
  @address_line1
end

#address_line2Object (readonly)

Returns the value of attribute address_line2.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def address_line2
  @address_line2
end

#address_line3Object (readonly)

Returns the value of attribute address_line3.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def address_line3
  @address_line3
end

#address_residential_indicatorObject (readonly)

Returns the value of attribute address_residential_indicator.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def address_residential_indicator
  @address_residential_indicator
end

#city_localityObject (readonly)

Returns the value of attribute city_locality.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def city_locality
  @city_locality
end

#company_nameObject (readonly)

Returns the value of attribute company_name.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def company_name
  @company_name
end

#country_codeObject (readonly)

Returns the value of attribute country_code.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def country_code
  @country_code
end

#nameObject (readonly)

Returns the value of attribute name.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def name
  @name
end

#phoneObject (readonly)

Returns the value of attribute phone.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def phone
  @phone
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def postal_code
  @postal_code
end

#state_provinceObject (readonly)

Returns the value of attribute state_province.



93
94
95
# File 'lib/shipengine/domain/rates/get_with_shipment_details.rb', line 93

def state_province
  @state_province
end