Class: Fishbowl::Objects::Country

Inherits:
BaseObject show all
Defined in:
lib/fishbowl/objects/address.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#send_request

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

#codeObject (readonly)

Returns the value of attribute code.



60
61
62
# File 'lib/fishbowl/objects/address.rb', line 60

def code
  @code
end

#db_idObject (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

#nameObject (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

.attributesObject



62
63
64
# File 'lib/fishbowl/objects/address.rb', line 62

def self.attributes
  %w{ID Name Code}
end