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