Class: InstagramCrawler::Client
- Inherits:
-
Object
- Object
- InstagramCrawler::Client
- Defined in:
- lib/instagram_crawler.rb
Instance Method Summary collapse
- #get_image_urls(limit = 1000) ⇒ Object
-
#initialize(hashtag) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(hashtag) ⇒ Client
Returns a new instance of Client.
8 9 10 11 |
# File 'lib/instagram_crawler.rb', line 8 def initialize(hashtag) @hashtag = hashtag @crawler = GetHashTagUrl.new(@hashtag) end |
Instance Method Details
#get_image_urls(limit = 1000) ⇒ Object
13 14 15 |
# File 'lib/instagram_crawler.rb', line 13 def get_image_urls(limit = 1000) @crawler.download_hashtag(limit) end |