Class: Sem4r::Address

Inherits:
Object
  • Object
show all
Includes:
Sem4rSoap::SoapAttributes
Defined in:
lib/sem4r/geo_location/address.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Sem4rSoap::SoapAttributes

#_from_element, #_to_s, #_to_xml, included

Constructor Details

#initialize(&block) ⇒ Address

Returns a new instance of Address.



37
38
39
40
41
# File 'lib/sem4r/geo_location/address.rb', line 37

def initialize(&block)
  if block_given?
    block.arity < 1 ? instance_eval(&block) : block.call(self)
  end
end

Class Method Details

.from_element(*args) ⇒ Object



43
44
45
# File 'lib/sem4r/geo_location/address.rb', line 43

def self.from_element(*args)
  _from_element(*args)
end

Instance Method Details

#to_sObject



51
52
53
# File 'lib/sem4r/geo_location/address.rb', line 51

def to_s
  _to_s
end

#to_xml(tag = "addresses") ⇒ Object



47
48
49
# File 'lib/sem4r/geo_location/address.rb', line 47

def to_xml(tag = "addresses")
  _to_xml(tag)
end