Class: DoverToCalais::ResponseData::Entity
- Inherits:
-
Struct
- Object
- Struct
- DoverToCalais::ResponseData::Entity
- Defined in:
- lib/dover_to_calais.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
82 83 84 |
# File 'lib/dover_to_calais.rb', line 82 def name @name end |
#ref ⇒ Object
Returns the value of attribute ref
82 83 84 |
# File 'lib/dover_to_calais.rb', line 82 def ref @ref end |
#type ⇒ Object
Returns the value of attribute type
82 83 84 |
# File 'lib/dover_to_calais.rb', line 82 def type @type end |
Instance Method Details
#to_hash ⇒ Object
84 85 86 87 88 89 90 |
# File 'lib/dover_to_calais.rb', line 84 def to_hash a_hash = {} self.each_pair do |attr, value| a_hash[attr] = value end a_hash end |