Sha256: 53707b166734db2de616c1731b86576a702df88d421a6ca2d410949a54de34e2

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

module FlexmlsApi
  # =API Client
  # Main class to setup and run requests on the API.  A default client is accessible globally as 
  # FlexmlsApi::client if the global configuration has been set as well.  Otherwise, this class may 
  # be instanciated separately with the configuration information.
  class Client
    include Authentication
    include Request
    
    attr_accessor *Configuration::VALID_OPTION_KEYS
    
    def initialize(options={})
      options = FlexmlsApi.options.merge(options)
      Configuration::VALID_OPTION_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexmls_api-0.3.6 lib/flexmls_api/client.rb
flexmls_api-0.3.3 lib/flexmls_api/client.rb
flexmls_api-0.3.2 lib/flexmls_api/client.rb