Class: Postmen::Address
- Inherits:
-
Object
- Object
- Postmen::Address
- Includes:
- Common
- Defined in:
- lib/postmen/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#company_name ⇒ Object
readonly
Returns the value of attribute company_name.
-
#contact_name ⇒ Object
readonly
Returns the value of attribute contact_name.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#fax ⇒ Object
readonly
Returns the value of attribute fax.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#street1 ⇒ Object
readonly
Returns the value of attribute street1.
-
#street2 ⇒ Object
readonly
Returns the value of attribute street2.
-
#street3 ⇒ Object
readonly
Returns the value of attribute street3.
-
#tax_id ⇒ Object
readonly
Returns the value of attribute tax_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options) ⇒ Address
constructor
A new instance of Address.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Address
Returns a new instance of Address.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/postmen/address.rb', line 21 def initialize() @country = [:country] @contact_name = [:contact_name] @phone = [:phone] @fax = [:fax] @email = [:email] @company_name = [:company_name] @street1 = [:street1] @street2 = [:street2] @street3 = [:street3] @city = [:city] @state = [:state] @type = [:type] @postal_code = [:postal_code] @type = [:type] @tax_id = [:tax_id] end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def city @city end |
#company_name ⇒ Object (readonly)
Returns the value of attribute company_name.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def company_name @company_name end |
#contact_name ⇒ Object (readonly)
Returns the value of attribute contact_name.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def contact_name @contact_name end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def country @country end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def email @email end |
#fax ⇒ Object (readonly)
Returns the value of attribute fax.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def fax @fax end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def phone @phone end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def postal_code @postal_code end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def state @state end |
#street1 ⇒ Object (readonly)
Returns the value of attribute street1.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def street1 @street1 end |
#street2 ⇒ Object (readonly)
Returns the value of attribute street2.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def street2 @street2 end |
#street3 ⇒ Object (readonly)
Returns the value of attribute street3.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def street3 @street3 end |
#tax_id ⇒ Object (readonly)
Returns the value of attribute tax_id.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def tax_id @tax_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/postmen/address.rb', line 5 def type @type end |