Class: RETS4R::ListingService
- Inherits:
-
Object
- Object
- RETS4R::ListingService
- Defined in:
- lib/rets4r/listing_service.rb
Constant Summary collapse
- RECORD_COUNT_ONLY =
RECORD_COUNT_ONLY=Librets::SearchRequest::RECORD_COUNT_ONLY
'fixme'
Class Method Summary collapse
-
.connection(spec = nil) ⇒ Object
Connection configuration for the specified environment, or the current environment if none is given.
Class Method Details
.connection(spec = nil) ⇒ Object
Connection configuration for the specified environment, or the current environment if none is given.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/rets4r/listing_service.rb', line 18 def connection(spec = nil) case spec when nil connection(RETS4R::ListingService.env) when Symbol, String if configuration = configurations[spec.to_s] configuration.symbolize_keys else raise ArgumentError, "#{spec} listing service is not configured" end else raise ArgumentError, "#{spec} listing service is not configured" end end |