Sha256: 78f28e64513029c02f7089d530b2b13f3e4b7fdf488cbf98af27ce55d0097154

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

# encoding: UTF-8

module GoodData
  module Mixin
    module DataPropertyReader
      def data_property_reader(*props)
        props.each do |prop|
          define_method prop, proc { data[prop.to_s] }
        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_reader.rb
gooddata-0.6.6 lib/gooddata/mixins/data_property_reader.rb
gooddata-0.6.5 lib/gooddata/mixins/data_property_reader.rb