Class: RETS4R::Client::Data
Overview
Represents a row of data. Nothing more than a glorfied Hash with a custom constructor and a type attribute.
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = false) ⇒ Data
constructor
A new instance of Data.
Methods inherited from Hash
#assert_valid_keys, #extract!, #slice, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!
Constructor Details
#initialize(type = false) ⇒ Data
Returns a new instance of Data.
8 9 10 11 |
# File 'lib/rets4r/client/data.rb', line 8 def initialize(type = false) super self.type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/rets4r/client/data.rb', line 6 def type @type end |