Class: RETS4R::Client::Metadata
- Defined in:
- lib/rets4r/client/metadata.rb
Overview
Represents a set of metadata. It is simply an extended Array with type and attributes accessors.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = false) ⇒ Metadata
constructor
A new instance of Metadata.
Methods inherited from Array
Constructor Details
#initialize(type = false) ⇒ Metadata
Returns a new instance of Metadata.
9 10 11 12 |
# File 'lib/rets4r/client/metadata.rb', line 9 def initialize(type = false) self.type = type if type self.attributes = {} end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/rets4r/client/metadata.rb', line 7 def attributes @attributes end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/rets4r/client/metadata.rb', line 7 def type @type end |