Class: Fishbowl::Objects::Carrier

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#send_request

Constructor Details

#initialize(carrier_xml) ⇒ Carrier

Returns a new instance of Carrier.



9
10
11
12
13
# File 'lib/fishbowl/objects/carrier.rb', line 9

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/fishbowl/objects/carrier.rb', line 3

def name
  @name
end

Class Method Details

.attributesObject



5
6
7
# File 'lib/fishbowl/objects/carrier.rb', line 5

def self.attributes
  %w{Name}
end