Module: GoodData::Mixin::ContentPropertyWriter

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

Instance Method Summary collapse

Instance Method Details

#content_property_writer(*props) ⇒ Object



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

def content_property_writer(*props)
  props.each do |prop|
    define_method "#{prop}=", proc { |val| content[prop.to_s] = val }
  end
end