Class: RETS4R::Client::DataObject

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

Overview

Represents a RETS object (as returned by the get_object) transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers, data) ⇒ DataObject

Returns a new instance of DataObject.


16
17
18
19
# File 'lib/rets4r/client/dataobject.rb', line 16

def initialize(headers, data)
  @header = ObjectHeader.new(headers)
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data


11
12
13
# File 'lib/rets4r/client/dataobject.rb', line 11

def data
  @data
end

#headerObject Also known as: type

Returns the value of attribute header


11
12
13
# File 'lib/rets4r/client/dataobject.rb', line 11

def header
  @header
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)

21
22
23
24
# File 'lib/rets4r/client/dataobject.rb', line 21

def success?
    return true if self.data
    return false
end