Module: Potpourri::ReportConfigs

Included in:
Report
Defined in:
lib/lib/report_configs.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



3
4
5
# File 'lib/lib/report_configs.rb', line 3

def self.included(mod)
  mod.extend ClassMethods
end

Instance Method Details

#fieldsObject



7
8
9
# File 'lib/lib/report_configs.rb', line 7

def fields
  self.class.instance_variable_get '@fields'
end

#resource_classObject



11
12
13
# File 'lib/lib/report_configs.rb', line 11

def resource_class
  self.class.instance_variable_get '@klass'
end