Class: Tangerine::Player

Inherits:
Base
  • Object
show all
Defined in:
lib/tangerine/backlot/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

all, find, finder, #initialize, prepare_items

Constructor Details

This class inherits a constructor from Tangerine::Base

Instance Attribute Details

#autoplayObject

Returns the value of attribute autoplay.



2
3
4
# File 'lib/tangerine/backlot/player.rb', line 2

def autoplay
  @autoplay
end

#browser_placementObject

Returns the value of attribute browser_placement.



2
3
4
# File 'lib/tangerine/backlot/player.rb', line 2

def browser_placement
  @browser_placement
end

#embed_codeObject

Returns the value of attribute embed_code.



2
3
4
# File 'lib/tangerine/backlot/player.rb', line 2

def embed_code
  @embed_code
end

#heightObject

Returns the value of attribute height.



2
3
4
# File 'lib/tangerine/backlot/player.rb', line 2

def height
  @height
end

#hideObject

Returns the value of attribute hide.



2
3
4
# File 'lib/tangerine/backlot/player.rb', line 2

def hide
  @hide
end

#widthObject

Returns the value of attribute width.



2
3
4
# File 'lib/tangerine/backlot/player.rb', line 2

def width
  @width
end

Instance Method Details

#renderObject



9
10
11
# File 'lib/tangerine/backlot/player.rb', line 9

def render
  "http://player.ooyala.com/player.js?width=#{width}&height=#{height}&embedCode=#{embed_code}"
end