Class: Bugscriber::Resources::Tracks

Inherits:
BaseResource show all
Defined in:
lib/bugscriber/resources/tracks.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#client

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

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