Class: AngieCoreApi::TV

Inherits:
Object
  • Object
show all
Defined in:
lib/angie-core-api/tv.rb

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ TV

Returns a new instance of TV.



5
6
7
# File 'lib/angie-core-api/tv.rb', line 5

def initialize(provider)
  @provider = provider
end

Instance Method Details

#command(command) ⇒ Object



9
10
11
# File 'lib/angie-core-api/tv.rb', line 9

def command(command)
  Client.data(:post, "/appliances/tv", { provider: @provider, command: command})
end