Class: InstaScraper::JSON::AccountMedia
- Inherits:
-
InstaScraper::JSON
- Object
- InstaScraper::JSON
- InstaScraper::JSON::AccountMedia
- Defined in:
- lib/insta_scraper/json/account_media.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes inherited from InstaScraper::JSON
Instance Method Summary collapse
-
#initialize(username, params = {}) ⇒ AccountMedia
constructor
A new instance of AccountMedia.
- #url ⇒ Object
Methods inherited from InstaScraper::JSON
Constructor Details
#initialize(username, params = {}) ⇒ AccountMedia
Returns a new instance of AccountMedia.
6 7 8 9 |
# File 'lib/insta_scraper/json/account_media.rb', line 6 def initialize(username, params = {}) @username = username @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/insta_scraper/json/account_media.rb', line 3 def params @params end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
3 4 5 |
# File 'lib/insta_scraper/json/account_media.rb', line 3 def username @username end |
Instance Method Details
#url ⇒ Object
11 12 13 |
# File 'lib/insta_scraper/json/account_media.rb', line 11 def url "https://www.instagram.com/#{username}/media/#{serialize_params}" end |