Class: InstaScraper::JSON::Account

Inherits:
InstaScraper::JSON show all
Defined in:
lib/insta_scraper/json/account.rb

Instance Attribute Summary collapse

Attributes inherited from InstaScraper::JSON

#response

Instance Method Summary collapse

Methods inherited from InstaScraper::JSON

#data, #raw_json

Constructor Details

#initialize(username) ⇒ Account

Returns a new instance of Account.



5
6
7
# File 'lib/insta_scraper/json/account.rb', line 5

def initialize(username)
  @username = username
end

Instance Attribute Details

#usernameObject (readonly)

Returns the value of attribute username.



3
4
5
# File 'lib/insta_scraper/json/account.rb', line 3

def username
  @username
end

Instance Method Details

#urlObject



9
10
11
# File 'lib/insta_scraper/json/account.rb', line 9

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