class MindMeld::Tv
Public Class Methods
new(options)
click to toggle source
Calls superclass method
MindMeld::Device::new
# File lib/mind_meld/tv.rb, line 4 def initialize options options[:device][:device_type] ||= 'Tv' super options end
Public Instance Methods
set_application(application)
click to toggle source
# File lib/mind_meld/tv.rb, line 9 def set_application application request :put, 'plugin/tv/set_application', { device: { id: device_details['id'], application: application } } end