Class: Tinder::Connection
- Inherits:
-
Object
- Object
- Tinder::Connection
- Defined in:
- lib/tinder/connection.rb
Instance Method Summary collapse
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
- #metaclass ⇒ Object
- #method_missing(*args, &block) ⇒ Object
Constructor Details
#initialize ⇒ Connection
Returns a new instance of Connection.
5 6 7 8 9 10 11 |
# File 'lib/tinder/connection.rb', line 5 def initialize class << self include HTTParty headers 'Content-Type' => 'application/json' end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
17 18 19 |
# File 'lib/tinder/connection.rb', line 17 def method_missing(*args, &block) .send(*args, &block) end |
Instance Method Details
#metaclass ⇒ Object
13 14 15 |
# File 'lib/tinder/connection.rb', line 13 def class << self; self; end end |