lib/gooddata/models/metadata/attribute.rb
# Finds the value of an atribute and gives you the textual form for the label that is acquired by calling primary_label method
#
# @param uri [String] Uri of the element. in the form of /gdc/md/PID/obj/OBJ_ID/elements?id=21
# @return [String] Textual representation of a particular attribute element
Finds the value of an atribute and gives you the textual form for the label that is acquired by calling primary_label method
Finds the value of an atribute and gives you the textual form for the label that is acquired by calling primary_label method
def find_element_value(stuff, opts = { :project => GoodData.project })
        stuff.scan(%r{([^\[\]]*)\/elements\?id=(\d+)}).pmap do |a, id|
          opts[:project].attributes(a).primary_label.find_element_value(id.to_i)
        end.first
      end
def find_element_value ( stuff , opts = { :project => GoodData . project } ) stuff . scan ( %r{ ([^ \[ \] ]*) \/ elements \? id=( \d +) } ) . pmap do | a , id | opts [ :project ] . attributes ( a ) . primary_label . find_element_value ( id . to_i ) end . first end
Finds the value of an atribute and gives you the textual form for the label that is acquired by calling primary_label method
Finds the value of an atribute and gives you the textual form for the label that is acquired by calling primary_label method
Textual representation of a particular attribute element
Textual representation of a particular attribute element
String
stuff
opts
project
uri
Uri of the element. in the form of /gdc/md/PID/obj/OBJ_ID/elements?id=21
Uri of the element . in the form of / gdc / md / PID / obj / OBJ_ID / elements?id = 21