Class: Fishbowl::Objects::Address
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::Address
- Defined in:
- lib/fishbowl/objects/address.rb
Instance Attribute Summary collapse
-
#address_information_list ⇒ Object
readonly
Returns the value of attribute address_information_list.
-
#attn ⇒ Object
readonly
Returns the value of attribute attn.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#db_id ⇒ Object
readonly
Returns the value of attribute db_id.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#location_group_id ⇒ Object
readonly
Returns the value of attribute location_group_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#residential ⇒ Object
readonly
Returns the value of attribute residential.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#street ⇒ Object
readonly
Returns the value of attribute street.
-
#temp_account ⇒ Object
readonly
Returns the value of attribute temp_account.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(address_xml) ⇒ Address
constructor
A new instance of Address.
Methods inherited from BaseObject
Constructor Details
#initialize(address_xml) ⇒ Address
Returns a new instance of Address.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fishbowl/objects/address.rb', line 11 def initialize(address_xml) @xml = address_xml parse_attributes @temp_account @state = get_state(address_xml) @country = get_country(address_xml) @address_information_list = get_address_information(address_xml) self end |
Instance Attribute Details
#address_information_list ⇒ Object (readonly)
Returns the value of attribute address_information_list.
5 6 7 |
# File 'lib/fishbowl/objects/address.rb', line 5 def address_information_list @address_information_list end |
#attn ⇒ Object (readonly)
Returns the value of attribute attn.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def attn @attn end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
5 6 7 |
# File 'lib/fishbowl/objects/address.rb', line 5 def country @country end |
#db_id ⇒ Object (readonly)
Returns the value of attribute db_id.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def db_id @db_id end |
#default ⇒ Object (readonly)
Returns the value of attribute default.
4 5 6 |
# File 'lib/fishbowl/objects/address.rb', line 4 def default @default end |
#location_group_id ⇒ Object (readonly)
Returns the value of attribute location_group_id.
4 5 6 |
# File 'lib/fishbowl/objects/address.rb', line 4 def location_group_id @location_group_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def name @name end |
#residential ⇒ Object (readonly)
Returns the value of attribute residential.
4 5 6 |
# File 'lib/fishbowl/objects/address.rb', line 4 def residential @residential end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
4 5 6 |
# File 'lib/fishbowl/objects/address.rb', line 4 def state @state end |
#street ⇒ Object (readonly)
Returns the value of attribute street.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def street @street end |
#temp_account ⇒ Object (readonly)
Returns the value of attribute temp_account.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def temp_account @temp_account end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/fishbowl/objects/address.rb', line 4 def type @type end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
3 4 5 |
# File 'lib/fishbowl/objects/address.rb', line 3 def zip @zip end |
Class Method Details
.attributes ⇒ Object
7 8 9 |
# File 'lib/fishbowl/objects/address.rb', line 7 def self.attributes %w{ID Name Attn Street City Zip LocationGroupID Default Residential Type} end |