Class: ArmoryApi::Client
- Inherits:
-
Object
- Object
- ArmoryApi::Client
- Includes:
- Achievement, Character, Item
- Defined in:
- lib/armory_api/client.rb,
lib/armory_api/client/item.rb,
lib/armory_api/client/character.rb,
lib/armory_api/client/achievement.rb
Defined Under Namespace
Modules: Achievement, Character, Item
Instance Method Summary collapse
-
#get(path, params = {}, options = {}) ⇒ Object
Performs an HTTP GET request.
-
#initialize(options = {}) ⇒ ArmoryApi::Client
constructor
Initializes a new Client object.
Methods included from Item
Methods included from Character
Methods included from Achievement
Constructor Details
#initialize(options = {}) ⇒ ArmoryApi::Client
Initializes a new Client object
16 17 18 19 20 21 |
# File 'lib/armory_api/client.rb', line 16 def initialize(={}) = ArmoryApi..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#get(path, params = {}, options = {}) ⇒ Object
Performs an HTTP GET request
24 25 26 |
# File 'lib/armory_api/client.rb', line 24 def get(path, params={}, ={}) request(:get, path, params, ) end |