Class: Horseman::Element
- Inherits:
-
Object
- Object
- Horseman::Element
- Defined in:
- lib/horseman/response.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id = '', name = '') ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(id = '', name = '') ⇒ Element
Returns a new instance of Element.
6 7 8 9 |
# File 'lib/horseman/response.rb', line 6 def initialize(id='', name='') @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/horseman/response.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/horseman/response.rb', line 5 def name @name end |