Class: Fishbowl::Objects::Country
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::Country
- Defined in:
- lib/fishbowl/objects/address.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#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(country_xml) ⇒ Country
constructor
A new instance of Country.
Methods inherited from BaseObject
Constructor Details
#initialize(country_xml) ⇒ Country
Returns a new instance of Country.
66 67 68 69 70 |
# File 'lib/fishbowl/objects/address.rb', line 66 def initialize(country_xml) @xml = country_xml parse_attributes self end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
60 61 62 |
# File 'lib/fishbowl/objects/address.rb', line 60 def code @code end |
#db_id ⇒ Object (readonly)
Returns the value of attribute db_id.
60 61 62 |
# File 'lib/fishbowl/objects/address.rb', line 60 def db_id @db_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
60 61 62 |
# File 'lib/fishbowl/objects/address.rb', line 60 def name @name end |
Class Method Details
.attributes ⇒ Object
62 63 64 |
# File 'lib/fishbowl/objects/address.rb', line 62 def self.attributes %w{ID Name Code} end |