Sha256: 35b03de9d06d1857e03f6cd98044e47d3bde2e452577e27b52e33b8563080f06

Contents?: true

Size: 529 Bytes

Versions: 13

Compression:

Stored size: 529 Bytes

Contents

require 'cashstar/authentication'
require 'cashstar/configuration'
require 'cashstar/connection'
require 'cashstar/request'

module Cashstar
  # @private
  class API
    include Connection
    include Request
    include Authentication

    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

    # Creates a new API
    def initialize(options={})
      options = Cashstar.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
cashstar-ruby-0.2.4 lib/cashstar/api.rb
cashstar-ruby-0.2.3 lib/cashstar/api.rb
cashstar-ruby-0.2.2 lib/cashstar/api.rb
cashstar-ruby-0.2.1 lib/cashstar/api.rb
cashstar-ruby-0.2.0 lib/cashstar/api.rb
cashstar-ruby-0.1.8 lib/cashstar/api.rb
cashstar-ruby-0.1.7 lib/cashstar/api.rb
cashstar-0.1.5 lib/cashstar/api.rb
cashstar-0.1.4 lib/cashstar/api.rb
cashstar-0.1.3 lib/cashstar/api.rb
cashstar-0.1.2 lib/cashstar/api.rb
cashstar-0.1.1 lib/cashstar/api.rb
cashstar-0.1.0 lib/cashstar/api.rb