Module: GoodData::Mixin::ContentPropertyReader

Included in:
GoodData::Metric
Defined in:
lib/gooddata/mixins/content_property_reader.rb

Instance Method Summary collapse

Instance Method Details

#content_property_reader(*props) ⇒ Object



10
11
12
13
14
# File 'lib/gooddata/mixins/content_property_reader.rb', line 10

def content_property_reader(*props)
  props.each do |prop|
    define_method prop, proc { content[prop.to_s] }
  end
end