Class: RubyRETS::Client::DataObject

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyrets/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(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

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/rubyrets/client/dataobject.rb', line 5

def data
  @data
end

#typeObject 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

Returns:

  • (Boolean)


13
14
15
16
# File 'lib/rubyrets/client/dataobject.rb', line 13

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