Class: Contactually::Connection
- Inherits:
-
Object
- Object
- Contactually::Connection
- Includes:
- HTTParty
- Defined in:
- lib/contactually.rb
Instance Method Summary collapse
-
#initialize(api_key) ⇒ Connection
constructor
A new instance of Connection.
- #tasks_list ⇒ Object
Constructor Details
#initialize(api_key) ⇒ Connection
Returns a new instance of Connection.
31 32 33 |
# File 'lib/contactually.rb', line 31 def initialize(api_key) = { query: {api_key: api_key } } end |
Instance Method Details
#tasks_list ⇒ Object
35 36 37 |
# File 'lib/contactually.rb', line 35 def tasks_list self.class.get("/api/v1/tasks", ) end |