Sha256: a398991453ac38496741ec57458d0561a2a66e2446c5e39f68a3242394f5013a

Contents?: true

Size: 776 Bytes

Versions: 4

Compression:

Stored size: 776 Bytes

Contents

module MarketBot
  module Android

    # 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!!!
    class Developer < MarketBot::Android::Leaderboard
      def initialize(developer, options={})
        super(developer, nil, options)
      end

      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
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
market_bot-0.14.0 lib/market_bot/android/developer.rb
market_bot-0.13.0 lib/market_bot/android/developer.rb
market_bot-0.12.2 lib/market_bot/android/developer.rb
market_bot-0.12.1 lib/market_bot/android/developer.rb