class Brickset::Year

Attributes

set_count[RW]
theme[RW]
year[RW]

Public Class Methods

new(data) click to toggle source

theme String year String setCount Integer

# 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