Class: Brickset::Year

Inherits:
Object
  • Object
show all
Defined in:
lib/brickset/year.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject

Returns the value of attribute set_count.



3
4
5
# File 'lib/brickset/year.rb', line 3

def set_count
  @set_count
end

#themeObject

Returns the value of attribute theme.



3
4
5
# File 'lib/brickset/year.rb', line 3

def theme
  @theme
end

#yearObject

Returns the value of attribute year.



3
4
5
# File 'lib/brickset/year.rb', line 3

def year
  @year
end