Class: Brickset::Year
- Inherits:
-
Object
- Object
- Brickset::Year
- Defined in:
- lib/brickset/year.rb
Instance Attribute Summary collapse
-
#set_count ⇒ Object
Returns the value of attribute set_count.
-
#theme ⇒ Object
Returns the value of attribute theme.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(data) ⇒ Year
constructor
theme String year String setCount Integer.
Constructor Details
#initialize(data) ⇒ Year
theme String year String setCount Integer
7 8 9 10 11 |
# File 'lib/brickset/year.rb', line 7 def initialize(data) @theme = data.dig(:theme) @year = data.dig(:year) @set_count = data.dig(:set_count).to_i end |
Instance Attribute Details
#set_count ⇒ Object
Returns the value of attribute set_count.
3 4 5 |
# File 'lib/brickset/year.rb', line 3 def set_count @set_count end |
#theme ⇒ Object
Returns the value of attribute theme.
3 4 5 |
# File 'lib/brickset/year.rb', line 3 def theme @theme end |
#year ⇒ Object
Returns the value of attribute year.
3 4 5 |
# File 'lib/brickset/year.rb', line 3 def year @year end |