module Access class Report def self.all_usage(options = {}) # Internal Admin only Call Access::Api.new.all_usage options end def self.usage(options = {}) # Internal Admin only Call Access::Api.new.usage options end def self.usage_other(key, options = {}) # Internal Admin only Call Access::Api.new.usage_other key, options end def initialize(values) self.class.class_eval {attr_reader *values.keys } values.each do |attribute_name, attribute_value| self.instance_variable_set("@#{attribute_name}", attribute_value) end end end end