Class: Itch::Bundle
- Inherits:
-
Object
- Object
- Itch::Bundle
- Includes:
- SimpleInspect
- Defined in:
- lib/itch/bundle.rb
Overview
Data container for single bundle
Instance Attribute Summary collapse
-
#earnings ⇒ Object
Returns the value of attribute earnings.
-
#games ⇒ Object
Returns the value of attribute games.
-
#id ⇒ Object
Returns the value of attribute id.
-
#price ⇒ Object
Returns the value of attribute price.
-
#purchases ⇒ Object
Returns the value of attribute purchases.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(id, title, purchases, price, earnings) ⇒ Bundle
constructor
A new instance of Bundle.
- #url ⇒ Object
Methods included from SimpleInspect
#exclude_inspection, #inspect, #pretty_print_instance_variables
Constructor Details
#initialize(id, title, purchases, price, earnings) ⇒ Bundle
Returns a new instance of Bundle.
12 13 14 15 16 17 18 |
# File 'lib/itch/bundle.rb', line 12 def initialize(id, title, purchases, price, earnings) @id = id @title = title @purchases = purchases @price = price @earnings = earnings end |
Instance Attribute Details
#earnings ⇒ Object
Returns the value of attribute earnings.
10 11 12 |
# File 'lib/itch/bundle.rb', line 10 def earnings @earnings end |
#games ⇒ Object
Returns the value of attribute games.
10 11 12 |
# File 'lib/itch/bundle.rb', line 10 def games @games end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/itch/bundle.rb', line 10 def id @id end |
#price ⇒ Object
Returns the value of attribute price.
10 11 12 |
# File 'lib/itch/bundle.rb', line 10 def price @price end |
#purchases ⇒ Object
Returns the value of attribute purchases.
10 11 12 |
# File 'lib/itch/bundle.rb', line 10 def purchases @purchases end |
#title ⇒ Object
Returns the value of attribute title.
10 11 12 |
# File 'lib/itch/bundle.rb', line 10 def title @title end |