Class: Rets::Metadata::LookupType

Inherits:
Object
  • Object
show all
Defined in:
lib/rets/metadata/lookup_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lookup_type_fragment) ⇒ LookupType

Returns a new instance of LookupType.



6
7
8
9
10
# File 'lib/rets/metadata/lookup_type.rb', line 6

def initialize(lookup_type_fragment)
  self.value       = lookup_type_fragment["Value"]
  self.short_value = lookup_type_fragment["ShortValue"]
  self.long_value  = lookup_type_fragment["LongValue"]
end

Instance Attribute Details

#long_valueObject

Returns the value of attribute long_value.



4
5
6
# File 'lib/rets/metadata/lookup_type.rb', line 4

def long_value
  @long_value
end

#short_valueObject

Returns the value of attribute short_value.



4
5
6
# File 'lib/rets/metadata/lookup_type.rb', line 4

def short_value
  @short_value
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/rets/metadata/lookup_type.rb', line 4

def value
  @value
end

Instance Method Details



12
13
14
# File 'lib/rets/metadata/lookup_type.rb', line 12

def print_tree
  puts "        #{long_value} -> #{value}"
end