class CrowdFundingParser::Parser::Hereo

Public Class Methods

new() click to toggle source
# File lib/crowd_funding_parser/parser/hereo.rb, line 4
def initialize
  @platform_url = "http://www.hereo.cc/"
  @item_css_class = ".project-list ul li"
  @status_css_class = ".projectImg .info .inner .detail span:nth-child(1)"
end

Public Instance Methods

get_id(project_url) click to toggle source
# File lib/crowd_funding_parser/parser/hereo.rb, line 14
def get_id(project_url)
  project_url.split("pid=").last
end
get_lists() click to toggle source
# File lib/crowd_funding_parser/parser/hereo.rb, line 10
def get_lists
  [HTTParty.get(@platform_url + "/project-list.php")]
end