Class: EveApi::ScopedApi
Constant Summary
Constants inherited from Api
Instance Method Summary collapse
-
#initialize(keyID, vCode, scope) ⇒ ScopedApi
constructor
A new instance of ScopedApi.
- #method_missing(method, args = {}) ⇒ Object
Methods inherited from Api
#account, canonic_path, #char, #corp, #eve, #map, #server, uri
Constructor Details
#initialize(keyID, vCode, scope) ⇒ ScopedApi
Returns a new instance of ScopedApi.
3 4 5 6 |
# File 'lib/eve_api/scoped_api.rb', line 3 def initialize(keyID, vCode, scope) @scope = scope super(keyID, vCode) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, args = {}) ⇒ Object
8 9 10 |
# File 'lib/eve_api/scoped_api.rb', line 8 def method_missing(method, args = {}) self.call(method, @scope, args) end |