Class: Info

Inherits:
Object
  • Object
show all
Defined in:
lib/nhentai-api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, count, url) ⇒ Info

Returns a new instance of Info.



7
8
9
10
11
12
# File 'lib/nhentai-api.rb', line 7

def initialize(id, name, count, url)
  @id     = id
  @name   = name
  @count  = count
  @url    = url
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



5
6
7
# File 'lib/nhentai-api.rb', line 5

def count
  @count
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/nhentai-api.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/nhentai-api.rb', line 5

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/nhentai-api.rb', line 5

def url
  @url
end