Class: Cameraman::Sources::RedTube

Inherits:
Object
  • Object
show all
Defined in:
lib/cameraman/sources/redtube.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ RedTube

Returns a new instance of RedTube.



8
9
10
# File 'lib/cameraman/sources/redtube.rb', line 8

def initialize id
  @id = id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/cameraman/sources/redtube.rb', line 6

def id
  @id
end

Instance Method Details

#embedObject



12
13
14
# File 'lib/cameraman/sources/redtube.rb', line 12

def embed
  "http://embed.redtube.com/player/?id=#{@id}&style=redtube"
end

#original_urlObject



16
17
18
# File 'lib/cameraman/sources/redtube.rb', line 16

def original_url
  "http://www.redtube.com/#{@id}"
end