Class: RETS4R::Client::Links

Inherits:
Hash
  • Object
show all
Defined in:
lib/rets4r/client/links.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/rets4r/client/links.rb', line 6

def logger
  @logger
end

Class Method Details

.from_login_url(login_url) ⇒ Object



7
8
9
10
11
# File 'lib/rets4r/client/links.rb', line 7

def self.()
  links = self.new
  links['Login'] = URI.parse()
  links
end

Instance Method Details

#actionObject



40
41
42
# File 'lib/rets4r/client/links.rb', line 40

def action
  self['Action']
end

#loginObject

– TODO: test this and remove crap from Client#login def []=(capability, uri)

uri = URI.parse(uri) unless URI === uri
if uri.absolute?
  super(capability, uri)
else
  base = self..clone
  base.path = results.response[capability]
  super(capability, base)
end

end ++



25
26
27
# File 'lib/rets4r/client/links.rb', line 25

def 
  self['Login']
end

#logoutObject



28
29
30
# File 'lib/rets4r/client/links.rb', line 28

def logout
  self['Logout']
end

#metadataObject



31
32
33
# File 'lib/rets4r/client/links.rb', line 31

def 
  self['GetMetadata']
end

#objectsObject



34
35
36
# File 'lib/rets4r/client/links.rb', line 34

def objects
  self['GetObject']
end

#searchObject



37
38
39
# File 'lib/rets4r/client/links.rb', line 37

def search
  self['Search']
end