Sha256: 3c3b80429c9f294c88eaadd20a8fb2ae4784e858c0b5b65421ff8362c193cb18

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 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

2 entries across 2 versions & 1 rubygems

Version Path
namba-1.2.0 lib/namba/client.rb
namba-1.1.0 lib/namba/client.rb