Class: Roku::App

Inherits:
Struct
  • Object
show all
Defined in:
lib/roku/app.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/roku/app.rb', line 2

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/roku/app.rb', line 2

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



2
3
4
# File 'lib/roku/app.rb', line 2

def type
  @type
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



2
3
4
# File 'lib/roku/app.rb', line 2

def version
  @version
end

Class Method Details

.parse(hash) ⇒ Object



8
9
10
# File 'lib/roku/app.rb', line 8

def parse(hash)
  App.new(*hash.values_at('__content__', 'id', 'type', 'version'))
end

Instance Method Details

#launch!Object



3
4
5
# File 'lib/roku/app.rb', line 3

def launch!
  Client.launch(id)
end