Class: Info
- Inherits:
-
Object
- Object
- Info
- Defined in:
- lib/nhentai-api.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id, name, count, url) ⇒ Info
constructor
A new instance of Info.
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
#count ⇒ Object (readonly)
Returns the value of attribute count.
5 6 7 |
# File 'lib/nhentai-api.rb', line 5 def count @count end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/nhentai-api.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/nhentai-api.rb', line 5 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/nhentai-api.rb', line 5 def url @url end |