Class: RETS4R::Client::Data

Inherits:
Hash
  • Object
show all
Defined in:
lib/rets4r/client/data.rb

Overview

Represents a row of data. Nothing more than a glorfied Hash with a custom constructor and a type attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/rets4r/client/data.rb', line 6

def type
  @type
end