Class: Unchained::Client
- Inherits:
-
Object
- Object
- Unchained::Client
- Includes:
- Archetypes, Request, Servers
- Defined in:
- lib/unchained/client.rb,
lib/unchained/client/request.rb,
lib/unchained/client/servers.rb,
lib/unchained/client/resource.rb,
lib/unchained/client/archetypes.rb
Defined Under Namespace
Modules: Archetypes, Request, Resource, Servers
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize(opts = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Servers
Methods included from Archetypes
Methods included from Request
Constructor Details
#initialize(opts = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 |
# File 'lib/unchained/client.rb', line 13 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
20 21 22 |
# File 'lib/unchained/client.rb', line 20 def base_url 'http://api.camelotunchained.com/v1' end |