Sha256: 74f255070490a45b06f9dcbf4040675770524b37f04a13916ca035577fd7e5c8

Contents?: true

Size: 261 Bytes

Versions: 3

Compression:

Stored size: 261 Bytes

Contents

# encoding: UTF-8

module GoodData
  module Mixin
    module DataPropertyWriter
      def data_property_writer(*props)
        props.each do |prop|
          define_method "#{prop}=", proc { |val| data[prop.to_s] = val }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gooddata-0.6.7 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.6 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.5 lib/gooddata/mixins/data_property_writer.rb