Class: Vidyard::Player

Inherits:
Object
  • Object
show all
Defined in:
lib/vidyard/player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = embed_url
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/vidyard/player.rb', line 4

def name
  @name
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/vidyard/player.rb', line 4

def url
  @url
end

#uuidObject

Returns the value of attribute uuid.



4
5
6
# File 'lib/vidyard/player.rb', line 4

def uuid
  @uuid
end

Instance Method Details

#embed_urlObject



12
13
14
# File 'lib/vidyard/player.rb', line 12

def embed_url
  "//embed.vidyard.com/share/#{@uuid}"
end