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