Sha256: cefed675b3a2c640960cf46f3dcaf8812f23276fb4fc4ed371fa43a5b64f7570
Contents?: true
Size: 362 Bytes
Versions: 4
Compression:
Stored size: 362 Bytes
Contents
require 'namba/config' require 'namba/api_methods' module Namba class Client extend Config include APIMethods attr_accessor *Config::VALID_KEYS def initialize(opts = {}) opts = Namba::Config.options.merge(opts) Config::VALID_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, opts[key]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
namba-1.0.1 | lib/namba/client.rb |
namba-1.0.0.1 | lib/namba/client.rb |
namba-1.0.0 | lib/namba/client.rb |
namba-0.0.1 | lib/namba/client.rb |