class OptimizePlayer::Project
Public Instance Methods
id()
click to toggle source
# File lib/optimize_player/project.rb, line 8 def id cid end
inspect()
click to toggle source
# File lib/optimize_player/project.rb, line 3 def inspect() cid_string = (self.respond_to?(:cid) && !self.cid.nil?) ? " cid=#{self.cid}" : "" "#<#{self.class}:0x#{self.object_id.to_s(16)}#{cid_string}> JSON: " + JSON.pretty_generate(@data) end
set_position(position)
click to toggle source
# File lib/optimize_player/project.rb, line 12 def set_position(position) response = context.client.send_request("projects/#{id}/set_position", :put, position: position) refresh_from(response) self end
toggle_favorite()
click to toggle source
# File lib/optimize_player/project.rb, line 18 def toggle_favorite response = context.client.send_request("projects/#{id}/toggle_favorite", :put) refresh_from(response) self end