Class: Bugscriber::Resources::Tracks
- Inherits:
-
BaseResource
- Object
- BaseResource
- Bugscriber::Resources::Tracks
- Defined in:
- lib/bugscriber/resources/tracks.rb
Instance Attribute Summary
Attributes inherited from BaseResource
Instance Method Summary collapse
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Bugscriber::Resources::BaseResource
Instance Method Details
#create(body) ⇒ Object
6 7 8 9 10 |
# File 'lib/bugscriber/resources/tracks.rb', line 6 def create(body) response = post_request('api/v1/tracks', body: body) puts 'Something goes wrong while connecting to bugscriber' unless response.success? end |