class Seatsio::Category

def self.create_list(list = [])

def self.create_list(list = [])
  result = []
  list.each do |item|
    result << Category.from_json(item)
  end
  result
end

def self.from_json(data)

def self.from_json(data)
  if data
    Category.new(data['key'], data['label'], data['color'], data['accessible'])
  end
end

def == (other)

def == (other)
  key == other.key &&
    label == other.label &&
    color == other.color &&
    accessible == other.accessible
end

def initialize(key, label, color, accessible = false)

def initialize(key, label, color, accessible = false)
  @key = key
  @label = label
  @color = color
  @accessible = accessible
end