Class: Cameraman::Sources::RedTube
- Inherits:
-
Object
- Object
- Cameraman::Sources::RedTube
- Defined in:
- lib/cameraman/sources/redtube.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #embed ⇒ Object
-
#initialize(id) ⇒ RedTube
constructor
A new instance of RedTube.
- #original_url ⇒ Object
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
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/cameraman/sources/redtube.rb', line 6 def id @id end |
Instance Method Details
#embed ⇒ Object
12 13 14 |
# File 'lib/cameraman/sources/redtube.rb', line 12 def "http://embed.redtube.com/player/?id=#{@id}&style=redtube" end |
#original_url ⇒ Object
16 17 18 |
# File 'lib/cameraman/sources/redtube.rb', line 16 def original_url "http://www.redtube.com/#{@id}" end |