Class: Yotsuba::AnimeFile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {id: nil, name: nil, size: nil, first_downloaded: nil, times_downloaded: nil, anime: nil})
  @id = options[:id]
  @name = options[:name]
  @size = options[:size]
  @first_downloaded = options[:first_downloaded]
  @times_downloaded = options[:times_downloaded]
  @anime = options[:anime]
  return self
end

Instance Attribute Details

#animeObject (readonly)

Returns the value of attribute anime.



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

def anime
  @anime
end

#first_downloadedObject (readonly)

Returns the value of attribute first_downloaded.



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

def first_downloaded
  @first_downloaded
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#sizeObject (readonly)

Returns the value of attribute size.



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

def size
  @size
end

#times_downloadedObject (readonly)

Returns the value of attribute times_downloaded.



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

def times_downloaded
  @times_downloaded
end