Sha256: 9edfd7ab142bf52e322d00e251c4cd676dc1e28752431041f9d382fa7b4c33fc
Contents?: true
Size: 534 Bytes
Versions: 1
Compression:
Stored size: 534 Bytes
Contents
# encoding: UTF-8 require_relative 'metadata' module GoodData class Attribute < GoodData::MdObject root_key :attribute class << self def [](id) if id == :all GoodData.get(GoodData.project.md['query'] + '/attributes/')['query']['entries'] else super end end end def display_forms content['displayForms'].map { |df| GoodData::DisplayForm[df['meta']['uri']] } end alias :labels :display_forms def is_attribute? true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0 | lib/gooddata/models/attribute.rb |