Class: Fishbowl::Objects::Carrier
- Inherits:
-
BaseObject
- Object
- BaseObject
- Fishbowl::Objects::Carrier
- Defined in:
- lib/fishbowl/objects/carrier.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(carrier_xml) ⇒ Carrier
constructor
A new instance of Carrier.
Methods inherited from BaseObject
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
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/fishbowl/objects/carrier.rb', line 3 def name @name end |
Class Method Details
.attributes ⇒ Object
5 6 7 |
# File 'lib/fishbowl/objects/carrier.rb', line 5 def self.attributes %w{Name} end |