Class: RubyRETS::Client::DataObject
- Inherits:
-
Object
- Object
- RubyRETS::Client::DataObject
- Defined in:
- lib/rubyrets/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.
-
#type ⇒ Object
(also: #info)
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, data) ⇒ DataObject
constructor
A new instance of DataObject.
- #success? ⇒ Boolean
Constructor Details
#initialize(type, data) ⇒ DataObject
Returns a new instance of DataObject.
8 9 10 11 |
# File 'lib/rubyrets/client/dataobject.rb', line 8 def initialize(type, data) self.type = type self.data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/rubyrets/client/dataobject.rb', line 5 def data @data end |
#type ⇒ Object Also known as: info
Returns the value of attribute type.
5 6 7 |
# File 'lib/rubyrets/client/dataobject.rb', line 5 def type @type end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 16 |
# File 'lib/rubyrets/client/dataobject.rb', line 13 def success? return true if self.data return false end |