Class: Mrmanga::Manga

Inherits:
Object
  • Object
show all
Defined in:
lib/mrmanga/manga.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeManga

Returns a new instance of Manga.



5
6
7
# File 'lib/mrmanga/manga.rb', line 5

def initialize
  @info = {}
end

Instance Attribute Details

#infoObject

Returns the value of attribute info.



3
4
5
# File 'lib/mrmanga/manga.rb', line 3

def info
  @info
end

Instance Method Details

#add_info(info) ⇒ Object



9
10
11
# File 'lib/mrmanga/manga.rb', line 9

def add_info(info)
  @info[:info] = info
end

#add_metadata(metadata) ⇒ Object



13
14
15
# File 'lib/mrmanga/manga.rb', line 13

def ()
  @info[:metadata] = 
end

#add_original_chapters(orig_ch) ⇒ Object



17
18
19
# File 'lib/mrmanga/manga.rb', line 17

def add_original_chapters(orig_ch)
  @info[:original_chapters] = orig_ch
end

#add_volumes_and_chapters(volch) ⇒ Object



25
26
27
# File 'lib/mrmanga/manga.rb', line 25

def add_volumes_and_chapters(volch)
  @info[:volch] = volch
end

#volumesObject



21
22
23
# File 'lib/mrmanga/manga.rb', line 21

def volumes
  @info[:volch].group_by(&:first)
end