Class: Yotsuba::AnimeFile
- Inherits:
-
Object
- Object
- Yotsuba::AnimeFile
- Defined in:
- lib/yotsuba/file.rb
Instance Attribute Summary collapse
-
#anime ⇒ Object
readonly
Returns the value of attribute anime.
-
#first_downloaded ⇒ Object
readonly
Returns the value of attribute first_downloaded.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#times_downloaded ⇒ Object
readonly
Returns the value of attribute times_downloaded.
Instance Method Summary collapse
-
#initialize(options = {id: nil, name: nil, size: nil, first_downloaded: nil, times_downloaded: nil, anime: nil}) ⇒ AnimeFile
constructor
A new instance of AnimeFile.
Constructor Details
#initialize(options = {id: nil, name: nil, size: nil, first_downloaded: nil, times_downloaded: nil, anime: nil}) ⇒ AnimeFile
Returns a new instance of AnimeFile.
6 7 8 9 10 11 12 13 14 |
# File 'lib/yotsuba/file.rb', line 6 def initialize( = {id: nil, name: nil, size: nil, first_downloaded: nil, times_downloaded: nil, anime: nil}) @id = [:id] @name = [:name] @size = [:size] @first_downloaded = [:first_downloaded] @times_downloaded = [:times_downloaded] @anime = [:anime] return self end |
Instance Attribute Details
#anime ⇒ Object (readonly)
Returns the value of attribute anime.
4 5 6 |
# File 'lib/yotsuba/file.rb', line 4 def anime @anime end |
#first_downloaded ⇒ Object (readonly)
Returns the value of attribute first_downloaded.
4 5 6 |
# File 'lib/yotsuba/file.rb', line 4 def first_downloaded @first_downloaded end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/yotsuba/file.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/yotsuba/file.rb', line 4 def name @name end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
4 5 6 |
# File 'lib/yotsuba/file.rb', line 4 def size @size end |
#times_downloaded ⇒ Object (readonly)
Returns the value of attribute times_downloaded.
4 5 6 |
# File 'lib/yotsuba/file.rb', line 4 def times_downloaded @times_downloaded end |