Class: Nokaya::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/nokaya/app.rb

Instance Method Summary collapse

Instance Method Details

#instagram(*args) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/nokaya/app.rb', line 10

def instagram *args
  nokaya = Getter.new options, :instagram, args
  page = nokaya.parse_page
  img_link = nokaya.get_link page
  path = nokaya.photo_name
  puts "Downloading #{img_link}, please wait...\n"
  nokaya.save_image path, img_link
  puts "\nImage saved in #{path}\n\n"
end