class Seatsio::Month
def self.from_json(data)
def self.from_json(data) @year = data['year'] @month = data['month'] self end
def initialize(year, month)
def initialize(year, month) @year = year @month = month end
def serialize
def serialize @year.to_s + "-" + @month.to_s.rjust(2, "0") end