Class: Vidyard::Player
- Inherits:
-
Object
- Object
- Vidyard::Player
- Defined in:
- lib/vidyard/player.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
- #embed_url ⇒ Object
-
#initialize(player) ⇒ Player
constructor
A new instance of Player.
Constructor Details
#initialize(player) ⇒ Player
Returns a new instance of Player.
6 7 8 9 10 |
# File 'lib/vidyard/player.rb', line 6 def initialize(player) @uuid = player['uuid'] @name = player['name'] @url = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/vidyard/player.rb', line 4 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/vidyard/player.rb', line 4 def url @url end |
#uuid ⇒ Object
Returns the value of attribute uuid.
4 5 6 |
# File 'lib/vidyard/player.rb', line 4 def uuid @uuid end |
Instance Method Details
#embed_url ⇒ Object
12 13 14 |
# File 'lib/vidyard/player.rb', line 12 def "//embed.vidyard.com/share/#{@uuid}" end |