class Desuraify::Company

Constants

ATTRIBUTES

Public Class Methods

new(id, options={}) click to toggle source
Calls superclass method Desuraify::Base::new
# File lib/desuraify/company.rb, line 12
def initialize(id, options={})
  super(id, options)
end

Public Instance Methods

attributes() click to toggle source
# File lib/desuraify/company.rb, line 39
def attributes
  ATTRIBUTES
end
image_rss() click to toggle source
# File lib/desuraify/company.rb, line 31
def image_rss
  "http://rss.desura.com/company/#{@id}/images/feed/rss.xml"
end
parse(html) click to toggle source
# File lib/desuraify/company.rb, line 16
def parse(html)

  doc = Nokogiri::HTML(html)

  result = parse_headers(doc.css('h5'))
  result.merge!(parse_similar(doc))
  result[:html] = html

  result
end
url() click to toggle source
# File lib/desuraify/company.rb, line 27
def url
  "http://www.desura.com/company/#{@id}"
end
video_rss() click to toggle source
# File lib/desuraify/company.rb, line 35
def video_rss
  "http://rss.desura.com/company/#{@id}/videos/feed/rss.xml"
end