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.
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
#data ⇒ Object
Returns the value of attribute data.
12 13 14 |
# File 'lib/rets4r/client/dataobject.rb', line 12 def data @data end |
#header ⇒ Object 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
22 23 24 25 |
# File 'lib/rets4r/client/dataobject.rb', line 22 def success? return true if self.data return false end |