Class: SimpleShipping::Address

Inherits:
SimpleShipping::Abstract::Model show all
Defined in:
lib/simple_shipping/address.rb

Overview

Represents an address information of party.

Attributes:

  • country_code

  • state_code

  • city

  • street_line

  • street_line_2

  • street_line_3

  • postal_code

Instance Attribute Summary collapse

Method Summary

Methods inherited from SimpleShipping::Abstract::Model

#initialize, set_default_values, validates_submodel

Constructor Details

This class inherits a constructor from SimpleShipping::Abstract::Model

Instance Attribute Details

#cityObject

Returns the value of attribute city.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def city
  @city
end

#country_codeObject

Returns the value of attribute country_code.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def country_code
  @country_code
end

#postal_codeObject

Returns the value of attribute postal_code.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def postal_code
  @postal_code
end

#state_codeObject

Returns the value of attribute state_code.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def state_code
  @state_code
end

#street_lineObject

Returns the value of attribute street_line.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def street_line
  @street_line
end

#street_line_2Object

Returns the value of attribute street_line_2.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def street_line_2
  @street_line_2
end

#street_line_3Object

Returns the value of attribute street_line_3.



12
13
14
# File 'lib/simple_shipping/address.rb', line 12

def street_line_3
  @street_line_3
end