In Files

  • lib/xxx/youporn.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Xxx::Youporn

Public Instance Methods

agent() click to toggle source
 
               # File lib/xxx/youporn.rb, line 8
def agent
  @agent ||= Mechanize.new
end
            
latest() click to toggle source
 
               # File lib/xxx/youporn.rb, line 12
def latest
  agent.get(uri(BROWSE_TIME_PATH), &ENTER_WEBSITE)
  path = agent.page.links_with(:href => /watch/).first.href
  uri(path)
end
            
uri(path) click to toggle source
 
               # File lib/xxx/youporn.rb, line 18
def uri(path)
  "#{URI}#{path}"
end