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