Class: Nokaya::ADN

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

Instance Attribute Summary collapse

Attributes inherited from Basic

#args, #filenames, #name, #options, #path, #type, #urls

Instance Method Summary collapse

Methods inherited from Basic

#get_basic, #parse, #save

Constructor Details

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

Returns a new instance of ADN.



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/nokaya/adn.rb', line 8

def initialize args, options = {}
  super(args, options)
  url = if options[:post]
          "https://photos.app.net/#{args[0]}/1"
        else
          args[0]
        end
  @type = :adn
  parsed = parse(url)
  @urls = [get_basic(parsed)].compact
  @author = author_name(parsed)
  @filenames = name_files()
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



6
7
8
# File 'lib/nokaya/adn.rb', line 6

def author
  @author
end