Class: Spearly::Auth::Authorizer
- Inherits:
-
Object
- Object
- Spearly::Auth::Authorizer
show all
- Defined in:
- lib/spearly/auth/authorizer.rb
Instance Method Summary
collapse
Constructor Details
#initialize(params) ⇒ 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
|