Class: Auth::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/auth/client.rb

Instance Method Summary collapse

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