class MangaedenApi::Chapter

Class containing all chapter informations.

Attributes

chapter_id[RW]

images is a Hash where the keys are the image number and the values are the image path

chapter_number[RW]

images is a Hash where the keys are the image number and the values are the image path

chapter_title[RW]

images is a Hash where the keys are the image number and the values are the image path

images[RW]

images is a Hash where the keys are the image number and the values are the image path

Public Class Methods

new(images, chapter_info) click to toggle source
# File lib/mangaeden_api/chapter.rb, line 8
def initialize(images, chapter_info)
  @chapter_id = chapter_info[3]
  @chapter_title = chapter_info[2]
  @chapter_number = chapter_info[0]
  @images = []
  images.each do |i|
    @images << { i[0] => "#{MangaedenApi::IMAGE_HOST}#{i[1]}" }
  end
end