Class: RedHaze::Track

Inherits:
Object
  • Object
show all
Includes:
Helpers::Resource
Defined in:
lib/red_haze/track.rb

Instance Attribute Summary

Attributes included from Helpers::Resource

#id

Instance Method Summary collapse

Methods included from Helpers::Resource

#delete_endpoint, #get_endpoint, included, #initialize, #put_endpoint, #sync, #url

Instance Method Details

#commentsObject



9
10
11
# File 'lib/red_haze/track.rb', line 9

def comments
  get_endpoint('/comments')
end

#favoritersObject



5
6
7
# File 'lib/red_haze/track.rb', line 5

def favoriters
  get_endpoint('/favoriters')
end

#ownerObject



17
18
19
20
# File 'lib/red_haze/track.rb', line 17

def owner
  sync if user_id.nil?
  User.new(user_id)
end

#shared_toObject



13
14
15
# File 'lib/red_haze/track.rb', line 13

def shared_to
  get_endpoint('/shared_to/users')
end