Sha256: 762d2ce9b8863800c011ef841277d6d478654757a4da4a26cf9a292904279508

Contents?: true

Size: 218 Bytes

Versions: 4

Compression:

Stored size: 218 Bytes

Contents

module InstaScraper
  class JSON::Media < InstaScraper::JSON
    attr_reader :code

    def initialize(code)
      @code = code
    end

    def url
      "https://www.instagram.com/p/#{code}/?__a=1"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
insta_scraper-0.8.0 lib/insta_scraper/json/media.rb
insta_scraper-0.7.0 lib/insta_scraper/json/media.rb
insta_scraper-0.6.1 lib/insta_scraper/json/media.rb
insta_scraper-0.6.0 lib/insta_scraper/json/media.rb