Class: Yotsuba::Anime
- Inherits:
-
Object
- Object
- Yotsuba::Anime
- Defined in:
- lib/yotsuba/anime.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#num_files ⇒ Object
readonly
Returns the value of attribute num_files.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {id: nil, title: nil, num_files: nil}) ⇒ Anime
constructor
A new instance of Anime.
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( = {id: nil, title: nil, num_files: nil}) @id = [:id] @title = [:title] @num_files = [:num_files] return self end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/yotsuba/anime.rb', line 4 def id @id end |
#num_files ⇒ Object (readonly)
Returns the value of attribute num_files.
4 5 6 |
# File 'lib/yotsuba/anime.rb', line 4 def num_files @num_files end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/yotsuba/anime.rb', line 4 def title @title end |