Class: Auth::Client
- Inherits:
-
Object
- Object
- Auth::Client
- Defined in:
- lib/auth/client.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Client
constructor
A new instance of Client.
- #method_missing(method) ⇒ Object
Constructor Details
#initialize(attributes) ⇒ Client
Returns a new instance of Client.
3 4 5 |
# File 'lib/auth/client.rb', line 3 def initialize(attributes) @attributes = attributes end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
7 8 9 |
# File 'lib/auth/client.rb', line 7 def method_missing(method) @attributes[method.to_s] || @attributes[method.to_sym] end |