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.



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

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

Instance Attribute Details

#dataObject

Returns the value of attribute data.



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

def data
  @data
end

#headerObject Also known as: type

Returns the value of attribute header.



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

def header
  @header
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


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

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