Class: CrowdFundingParser::Parser::Webackers
- Defined in:
- lib/crowd_funding_parser/parser/webackers.rb
Instance Method Summary collapse
- #get_lists ⇒ Object
-
#initialize ⇒ Webackers
constructor
A new instance of Webackers.
Methods inherited from General
#get_doc_through_url, #get_id, #get_json_through_url, #get_project, #get_project_links, #get_result, #parse_content_data, #parse_tracking_data
Constructor Details
#initialize ⇒ Webackers
Returns a new instance of Webackers.
4 5 6 7 8 |
# File 'lib/crowd_funding_parser/parser/webackers.rb', line 4 def initialize @platform_url = "http://www.webackers.com" @item_css_class = ".cbp-item" @status_css_class = "li.timeitem" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CrowdFundingParser::Parser::General
Instance Method Details
#get_lists ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/crowd_funding_parser/parser/webackers.rb', line 10 def get_lists categories = ["ART", "PUBLICATION", "MUSIC", "DESIGN", "TECHNOLOGY", "ACG", "SURPRISE", "CHARITY", "VIDEO"] categories.map do |category| category_url = @platform_url + "/Proposal/Browse?queryType=ALL&fundedStatus=ALL&category=#{category}" HTTParty.get(category_url) end end |