Class: UserEngage::Client
- Inherits:
-
Object
- Object
- UserEngage::Client
- Defined in:
- lib/user_engage/client.rb
Instance Method Summary collapse
-
#delete(path) ⇒ Object
Public: Calls the base_url with the given path and parameters.
-
#get(path, parameters = {}) ⇒ Object
Public: Calls the base_url with the given path and parameters.
-
#initialize(configuration) ⇒ Client
constructor
Instance methods ##.
-
#post(path, parameters = {}) ⇒ Object
Public: Calls the base_url with the given path and parameters.
Constructor Details
#initialize(configuration) ⇒ Client
Instance methods ##
10 11 12 |
# File 'lib/user_engage/client.rb', line 10 def initialize(configuration) @configuration = configuration end |
Instance Method Details
#delete(path) ⇒ Object
Public: Calls the base_url with the given path and parameters
22 23 24 |
# File 'lib/user_engage/client.rb', line 22 def delete(path) request(:delete, path) end |
#get(path, parameters = {}) ⇒ Object
Public: Calls the base_url with the given path and parameters
16 17 18 |
# File 'lib/user_engage/client.rb', line 16 def get(path, parameters = {}) request(:get, path, parameters) end |
#post(path, parameters = {}) ⇒ Object
Public: Calls the base_url with the given path and parameters
28 29 30 |
# File 'lib/user_engage/client.rb', line 28 def post(path, parameters = {}) request(:post, path, parameters) end |