Class: Unchained::Client
- Inherits:
-
Object
- Object
- Unchained::Client
- Defined in:
- lib/unchained/client.rb,
lib/unchained/client/races.rb,
lib/unchained/client/patcher.rb,
lib/unchained/client/servers.rb,
lib/unchained/client/factions.rb,
lib/unchained/client/archetypes.rb,
lib/unchained/client/mixins/resource.rb
Defined Under Namespace
Modules: Archetypes, Factions, Mixins, Patcher, Races, Servers
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Servers
Methods included from Patcher
#patcher_alerts, #patcher_hero_contents
Methods included from Races
Methods included from Factions
Methods included from Archetypes
Methods included from Request
Constructor Details
#initialize(opts = {}) ⇒ Client
16 17 18 19 20 21 |
# File 'lib/unchained/client.rb', line 16 def initialize(opts={}) config = Unchained.configuration.merge(opts) Unchained::Configuration::KEYS.each do |key| send("#{key}=", config[key]) end end |
Instance Method Details
#base_url ⇒ Object
23 24 25 |
# File 'lib/unchained/client.rb', line 23 def base_url 'http://api.camelotunchained.com/v1' end |