Class: Nokaya::Instagram

Inherits:
Basic
  • Object
show all
Defined in:
lib/nokaya/instagram.rb

Instance Attribute Summary

Attributes inherited from Basic

#args, #file_name, #image_url, #options, #path, #type

Instance Method Summary collapse

Methods inherited from Basic

#get_basic, #parse, #save

Constructor Details

#initialize(args, options = {}) ⇒ Instagram

Returns a new instance of Instagram.



8
9
10
11
12
13
14
15
# File 'lib/nokaya/instagram.rb', line 8

def initialize args, options = {}
  super(args, options)
  @type = :instagram
  parsed = self.parse(args[0])
  @image_url = [self.get_basic(parsed)]
  @author = author(parsed)
  @file_name = [name()]
end