Sha256: 8ae9e59f9e31d6186922cf2e4b386165c72bd9a99617fcbedfdef96c42cf055c

Contents?: true

Size: 279 Bytes

Versions: 13

Compression:

Stored size: 279 Bytes

Contents

# encoding: UTF-8

require_relative 'meta_getter'

module GoodData
  module Mixin
    module MetaPropertyReader
      def metadata_property_reader(*props)
        props.each do |prop|
          define_method prop, proc { meta[prop.to_s] }
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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