Class: Fishbowl::Objects::AddressInformation

Inherits:
BaseObject
  • Object
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(address_info_xml) ⇒ AddressInformation

Returns a new instance of AddressInformation.



80
81
82
83
84
# File 'lib/fishbowl/objects/address.rb', line 80

def initialize(address_info_xml)
  @xml = address_info_xml
  parse_attributes
  self
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



74
75
76
# File 'lib/fishbowl/objects/address.rb', line 74

def data
  @data
end

#db_idObject (readonly)

Returns the value of attribute db_id.



74
75
76
# File 'lib/fishbowl/objects/address.rb', line 74

def db_id
  @db_id
end

#defaultObject (readonly)

Returns the value of attribute default.



74
75
76
# File 'lib/fishbowl/objects/address.rb', line 74

def default
  @default
end

#nameObject (readonly)

Returns the value of attribute name.



74
75
76
# File 'lib/fishbowl/objects/address.rb', line 74

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



74
75
76
# File 'lib/fishbowl/objects/address.rb', line 74

def type
  @type
end

Class Method Details

.attributesObject



76
77
78
# File 'lib/fishbowl/objects/address.rb', line 76

def self.attributes
  %w{ID Name Data Default Type}
end