Class: Yotsuba::Anime

Inherits:
Object
  • Object
show all
Defined in:
lib/yotsuba/anime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {id: nil, title: nil, num_files: nil}) ⇒ Anime

Returns a new instance of Anime.



6
7
8
9
10
11
# File 'lib/yotsuba/anime.rb', line 6

def initialize(options = {id: nil, title: nil, num_files: nil})
  @id = options[:id]
  @title = options[:title]
  @num_files = options[:num_files]
  return self
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/yotsuba/anime.rb', line 4

def id
  @id
end

#num_filesObject (readonly)

Returns the value of attribute num_files.



4
5
6
# File 'lib/yotsuba/anime.rb', line 4

def num_files
  @num_files
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/yotsuba/anime.rb', line 4

def title
  @title
end