class Brickset::Subtheme
Attributes
name[RW]
set_count[RW]
theme[RW]
year_from[RW]
year_to[RW]
Public Class Methods
new(data)
click to toggle source
theme String subtheme String setCount Integer yearFrom Integer Populated by getSubthemes method only yearTo Integer Populated by getSubthemes method only
# File lib/brickset/subtheme.rb, line 9 def initialize(data) @theme = data.dig(:theme) @name = data.dig(:subtheme) @set_count = data.dig(:set_count).to_i @year_from = data.dig(:year_from).to_i @year_to = data.dig(:year_to).to_i end