Class: RETS4R::Client::Metadata

Inherits:
Array
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Array

#extract_options!

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

#attributesObject

Returns the value of attribute attributes.



7
8
9
# File 'lib/rets4r/client/metadata.rb', line 7

def attributes
  @attributes
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/rets4r/client/metadata.rb', line 7

def type
  @type
end