Class: RETS4R::Client::DataObject
- Inherits:
-
Object
- Object
- RETS4R::Client::DataObject
- Defined in:
- lib/rets4r/client/dataobject.rb
Overview
Represents a RETS object (as returned by the get_object) transaction.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#header ⇒ Object
(also: #type)
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(headers, data) ⇒ DataObject
constructor
A new instance of DataObject.
- #success? ⇒ Boolean
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
#data ⇒ Object
Returns the value of attribute data.
11 12 13 |
# File 'lib/rets4r/client/dataobject.rb', line 11 def data @data end |
#header ⇒ Object 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
21 22 23 24 |
# File 'lib/rets4r/client/dataobject.rb', line 21 def success? return true if self.data return false end |