Method: GoodData::Project#computed_attributes

Defined in:
lib/gooddata/models/project.rb

#computed_attributes(id = :all) ⇒ Object



821
822
823
824
825
826
827
828
# File 'lib/gooddata/models/project.rb', line 821

def computed_attributes(id = :all)
  attrs = attributes(id)
  if attrs.is_a?(GoodData::Attribute)
    attrs.computed_attribute? ? attrs : nil
  else
    attrs.select(&:computed_attribute?)
  end
end