Class: Fishbowl::Objects::State
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::State
- Defined in:
- lib/fishbowl/objects/address.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#country_id ⇒ Object
readonly
Returns the value of attribute country_id.
-
#db_id ⇒ Object
readonly
Returns the value of attribute db_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state_xml) ⇒ State
constructor
A new instance of State.
Methods inherited from BaseObject
Constructor Details
#initialize(state_xml) ⇒ State
Returns a new instance of State.
52 53 54 55 56 |
# File 'lib/fishbowl/objects/address.rb', line 52 def initialize(state_xml) @xml = state_xml parse_attributes self end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
46 47 48 |
# File 'lib/fishbowl/objects/address.rb', line 46 def code @code end |
#country_id ⇒ Object (readonly)
Returns the value of attribute country_id.
46 47 48 |
# File 'lib/fishbowl/objects/address.rb', line 46 def country_id @country_id end |
#db_id ⇒ Object (readonly)
Returns the value of attribute db_id.
46 47 48 |
# File 'lib/fishbowl/objects/address.rb', line 46 def db_id @db_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
46 47 48 |
# File 'lib/fishbowl/objects/address.rb', line 46 def name @name end |
Class Method Details
.attributes ⇒ Object
48 49 50 |
# File 'lib/fishbowl/objects/address.rb', line 48 def self.attributes %w{ID Name Code CountryID} end |