Class: Cameraman::Sources::XVideos

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

Instance Method Details

#embedObject



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

def embed
  "http://flashservice.xvideos.com/embedframe/#{@id}"
end

#original_urlObject



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

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