Module: FlexmlsApi
- Extended by:
- Configuration, MultiClient
- Defined in:
- lib/flexmls_api/version.rb,
lib/flexmls_api.rb,
lib/flexmls_api/cli.rb,
lib/flexmls_api/client.rb,
lib/flexmls_api/models.rb,
lib/flexmls_api/faraday.rb,
lib/flexmls_api/request.rb,
lib/flexmls_api/paginate.rb,
lib/flexmls_api/response.rb,
lib/flexmls_api/cli/setup.rb,
lib/flexmls_api/connection.rb,
lib/flexmls_api/models/base.rb,
lib/flexmls_api/models/note.rb,
lib/flexmls_api/models/photo.rb,
lib/flexmls_api/models/video.rb,
lib/flexmls_api/multi_client.rb,
lib/flexmls_api/configuration.rb,
lib/flexmls_api/primary_array.rb,
lib/flexmls_api/authentication.rb,
lib/flexmls_api/models/account.rb,
lib/flexmls_api/models/contact.rb,
lib/flexmls_api/models/finders.rb,
lib/flexmls_api/models/listing.rb,
lib/flexmls_api/models/message.rb,
lib/flexmls_api/models/document.rb,
lib/flexmls_api/models/idx_link.rb,
lib/flexmls_api/models/constraint.rb,
lib/flexmls_api/models/open_house.rb,
lib/flexmls_api/configuration/yaml.rb,
lib/flexmls_api/models/subresource.rb,
lib/flexmls_api/models/system_info.rb,
lib/flexmls_api/models/listing_cart.rb,
lib/flexmls_api/models/saved_search.rb,
lib/flexmls_api/models/tour_of_home.rb,
lib/flexmls_api/models/virtual_tour.rb,
lib/flexmls_api/models/connect_prefs.rb,
lib/flexmls_api/models/custom_fields.rb,
lib/flexmls_api/authentication/oauth2.rb,
lib/flexmls_api/models/property_types.rb,
lib/flexmls_api/models/shared_listing.rb,
lib/flexmls_api/models/standard_fields.rb,
lib/flexmls_api/authentication/api_auth.rb,
lib/flexmls_api/authentication/base_auth.rb,
lib/flexmls_api/models/market_statistics.rb,
lib/flexmls_api/authentication/oauth2_impl/middleware.rb,
lib/flexmls_api/authentication/oauth2_impl/grant_type_base.rb,
lib/flexmls_api/authentication/oauth2_impl/grant_type_code.rb,
lib/flexmls_api/authentication/oauth2_impl/password_provider.rb,
lib/flexmls_api/authentication/oauth2_impl/grant_type_refresh.rb,
lib/flexmls_api/authentication/oauth2_impl/grant_type_password.rb
Overview
Pagination for api resource collections
Will paginate adapter for the api client. Utilizes the same interface as will paginate and returns the same WillPaginate::Collection for finder results.
Defined Under Namespace
Modules: Authentication, CLI, Configuration, Connection, FaradayExt, Models, MultiClient, Paginate, PaginateHelper, PaginateResponse, Primary, Request, Response, ResponseCodes Classes: ApiResponse, BadResourceRequest, Client, ClientError, InvalidResponse, NotAllowed, NotFound, Pagination, PermissionDenied, PrimaryArray
Constant Summary collapse
- VERSION =
File.read(File.dirname(__FILE__) + "/../../VERSION").chomp
Constants included from Configuration
Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_API_SECRET, Configuration::DEFAULT_API_USER, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_OAUTH2, Configuration::DEFAULT_SSL, Configuration::DEFAULT_USER_AGENT, Configuration::DEFAULT_VERSION, Configuration::OAUTH2_KEYS, Configuration::VALID_OPTION_KEYS, Configuration::X_FLEXMLS_API_USER_AGENT
Class Method Summary collapse
-
.client(opts = {}) ⇒ Object
:nocov:.
-
.logger ⇒ Object
:nocov:.
- .method_missing(method, *args, &block) ⇒ Object
- .reset ⇒ Object
Methods included from Configuration
configure, extended, options, reset_configuration
Methods included from MultiClient
Class Method Details
.client(opts = {}) ⇒ Object
:nocov:
32 33 34 |
# File 'lib/flexmls_api.rb', line 32 def self.client(opts={}) Thread.current[:flexmls_api_client] ||= FlexmlsApi::Client.new(opts) end |
.logger ⇒ Object
:nocov:
23 24 25 26 27 28 29 |
# File 'lib/flexmls_api.rb', line 23 def self.logger if @logger.nil? @logger = Logger.new(STDOUT) @logger.level = Logger::INFO end @logger end |
.method_missing(method, *args, &block) ⇒ Object
36 37 38 39 |
# File 'lib/flexmls_api.rb', line 36 def self.method_missing(method, *args, &block) return super unless (client.respond_to?(method)) client.send(method, *args, &block) end |
.reset ⇒ Object
41 42 43 44 |
# File 'lib/flexmls_api.rb', line 41 def self.reset reset_configuration Thread.current[:flexmls_api_client] = nil end |