Sha256: 7c14a612999ae767436ef846c3a36b8191b39de9b182867b3a43c8caa29211ee

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

require File.expand_path('../connection', __FILE__)
require File.expand_path('../request', __FILE__)
require File.expand_path('../configuration', __FILE__)
require File.expand_path('../endpoint', __FILE__)

module Rhymba
  # @private
  class API
    # @private
    attr_accessor(*Configuration::VALID_OPTIONS_KEYS)

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

    include Connection
    include Request
    include Endpoint

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhymba-api-0.0.1 lib/rhymba/api.rb