class Unchained::Client

Attributes

cache[R]

Public Class Methods

new(opts={}) click to toggle source
# File lib/unchained/client.rb, line 19
def initialize(opts={})
  @cache = {}

  config = Unchained.configuration.merge(opts)
  Unchained::Configuration::KEYS.each do |key|
    send("#{key}=", config[key])
  end
end

Public Instance Methods

base_url() click to toggle source
# File lib/unchained/client.rb, line 28
def base_url
  'http://api.camelotunchained.com/v1'
end
clear_cache!() click to toggle source

Helper method to bust the cache.

# File lib/unchained/client.rb, line 33
def clear_cache!
  @cache = {}
end