Class: Spearly::Auth::Authorizer
- Inherits:
-
Object
- Object
- Spearly::Auth::Authorizer
- Defined in:
- lib/spearly/auth/authorizer.rb
Instance Method Summary collapse
-
#initialize(params) ⇒ Authorizer
constructor
A new instance of Authorizer.
- #method_missing(name, *args) ⇒ Object
- #respond_to_missing?(_name, *_args) ⇒ Boolean
Constructor Details
#initialize(params) ⇒ Authorizer
Returns a new instance of Authorizer.
8 9 10 11 |
# File 'lib/spearly/auth/authorizer.rb', line 8 def initialize(params) @params = params.deep_symbolize_keys @client = initialize_client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
13 14 15 16 17 |
# File 'lib/spearly/auth/authorizer.rb', line 13 def method_missing(name, *args) @client.send(name, *args) rescue Signet::AuthorizationError raise Spearly::Auth::AuthorizationError end |
Instance Method Details
#respond_to_missing?(_name, *_args) ⇒ Boolean
19 20 21 |
# File 'lib/spearly/auth/authorizer.rb', line 19 def respond_to_missing?(_name, *_args) true end |