Class: RETS4R::Client::Links
- Inherits:
-
Hash
- Object
- Hash
- RETS4R::Client::Links
- Defined in:
- lib/rets4r/client/links.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Instance Method Summary collapse
- #action ⇒ Object
-
#login ⇒ Object
– 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.login.clone base.path = results.response super(capability, base) end end ++.
- #logout ⇒ Object
- #metadata ⇒ Object
- #objects ⇒ Object
- #search ⇒ Object
Instance Attribute Details
#logger ⇒ Object
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.from_login_url(login_url) links = self.new links['Login'] = URI.parse(login_url) links end |
Instance Method Details
#action ⇒ Object
40 41 42 |
# File 'lib/rets4r/client/links.rb', line 40 def action self['Action'] end |
#login ⇒ Object
– 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.login.clone
base.path = results.response[capability]
super(capability, base)
end
end ++
25 26 27 |
# File 'lib/rets4r/client/links.rb', line 25 def login self['Login'] end |
#logout ⇒ Object
28 29 30 |
# File 'lib/rets4r/client/links.rb', line 28 def logout self['Logout'] end |
#metadata ⇒ Object
31 32 33 |
# File 'lib/rets4r/client/links.rb', line 31 def self['GetMetadata'] end |
#objects ⇒ Object
34 35 36 |
# File 'lib/rets4r/client/links.rb', line 34 def objects self['GetObject'] end |
#search ⇒ Object
37 38 39 |
# File 'lib/rets4r/client/links.rb', line 37 def search self['Search'] end |