Sha256: b5c34c7f4732762f121bacd601a0ced68f39231f77c438bea3875f26ceffc81d
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require 'oahu/config' require 'oahu/connection' require 'oahu/request' module Oahu class Client attr_accessor *Config::VALID_OPTIONS_KEYS include Oahu::Connection include Oahu::Request # Initializes a new API object # # @param attrs [Hash] # @return [Oahu::Client] def initialize(attrs={}) attrs = Oahu.options.merge(attrs) Config::VALID_OPTIONS_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, attrs[key]) end end def credentials { :client_id => client_id, :consumer_id => consumer_id, :consumer_secret => consumer_secret } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
oahu-0.0.1 | lib/oahu/client.rb |