Sha256: 7e028179460818f07bc85df0464d3e39dfaabc8faa4fb31ad56f5e65693212ff

Contents?: true

Size: 293 Bytes

Versions: 13

Compression:

Stored size: 293 Bytes

Contents

# encoding: UTF-8

require_relative 'data_getter'

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

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-0.6.20 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.19 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.18 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.17 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.16 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.15 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.14 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.13 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.12 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.11 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.10 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.9 lib/gooddata/mixins/data_property_writer.rb
gooddata-0.6.8 lib/gooddata/mixins/data_property_writer.rb