module Makitoo module FeatureFlag class User attr_accessor :id def initialize(id, attributes = {}) @id = id @attributes = attributes end def as_json(options = {}) result = @attributes.clone result[:id] = @id result end def self.of(string_or_user) if string_or_user.is_a? String User.new(string_or_user) else string_or_user end end end end end