class InstaScraper::HTML::Media
Attributes
code[R]
params[R]
Public Class Methods
new(code = nil, html = nil, params = {})
click to toggle source
# File lib/insta_scraper/html/media.rb, line 6 def initialize(code = nil, html = nil, params = {}) raise ArgumentError, 'Provide a code or html string' if !code && !html @code = code @html = html @params = params end
Public Instance Methods
url()
click to toggle source
# File lib/insta_scraper/html/media.rb, line 14 def url "https://www.instagram.com/p/#{code}/#{serialize_params}" end