Class: MarketBot::Android::Developer

Inherits:
Leaderboard show all
Defined in:
lib/market_bot/android/developer.rb

Overview

Developer pages are extremely similar to leaderboard pages. Amazingly, this inheritence hack works!

BUG: This code only retrieves the first page of results.

This means you will only get the first 24 apps for a developer.
Some developers have hundreds of apps so this needs fixed!!!

Constant Summary

Constants inherited from Leaderboard

Leaderboard::CATEGORIES, Leaderboard::IDENTIFIERS, Leaderboard::MAX_STARS, Leaderboard::PERCENT_DENOM

Instance Attribute Summary

Attributes inherited from Leaderboard

#category, #hydra, #identifier

Instance Method Summary collapse

Methods inherited from Leaderboard

#enqueue_update, parse, parse_editors_choice_page, parse_normal_page, #rank_to_page, #results, #update

Constructor Details

#initialize(developer, options = {}) ⇒ Developer

Returns a new instance of Developer.



11
12
13
# File 'lib/market_bot/android/developer.rb', line 11

def initialize(developer, options={})
  super(developer, nil, options)
end

Instance Method Details

#market_urls(options = {}) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/market_bot/android/developer.rb', line 15

def market_urls(options={})
  results = []

  url = "https://play.google.com/store/apps/developer?"
  url << "id=#{URI.escape(identifier)}&"
  url << "hl=en"

  results << url

  return results
end