lib/gooddata/models/metadata/attribute.rb
def date_attribute?
      things = [
        'week',
        'euweek.in.year',
        'day.in.week',
        'day.in.month',
        'day.in.quarter',
        'day.in.euweek',
        'date',
        'quarter.in.year',
        'week.in.year',
        'day.in.year',
        'month',
        'quarter',
        'month.in.quarter',
        'week.in.quarter',
        'year',
        'euweek',
        'euweek.in.quarter',
        'month.in.year'
      ]
      potential_id = identifier.split('.')[1..-1].join('.')
      things.include?(potential_id) ? true : false
    end
# Tells you if an attribute is a date dimension. This happens by inspecting
# an identifier if it conforms to a particular scheme.
#
# @return [Boolean] Is the attribute a date attribute?
Tells you if an attribute is a date dimension. This happens by inspecting
an identifier if it conforms to a particular scheme.
Tells you if an attribute is a date dimension . This happens by inspecting an identifier if it conforms to a particular scheme .
def date_attribute?
      things = [
        'week',
        'euweek.in.year',
        'day.in.week',
        'day.in.month',
        'day.in.quarter',
        'day.in.euweek',
        'date',
        'quarter.in.year',
        'week.in.year',
        'day.in.year',
        'month',
        'quarter',
        'month.in.quarter',
        'week.in.quarter',
        'year',
        'euweek',
        'euweek.in.quarter',
        'month.in.year'
      ]
      potential_id = identifier.split('.')[1..-1].join('.')
      things.include?(potential_id) ? true : false
    end
def date_attribute? things = [ 'week' , 'euweek.in.year' , 'day.in.week' , 'day.in.month' , 'day.in.quarter' , 'day.in.euweek' , 'date' , 'quarter.in.year' , 'week.in.year' , 'day.in.year' , 'month' , 'quarter' , 'month.in.quarter' , 'week.in.quarter' , 'year' , 'euweek' , 'euweek.in.quarter' , 'month.in.year' ] potential_id = identifier . split ( '.' ) [ 1 .. - 1 ] . join ( '.' ) things . include? ( potential_id ) ? true : false end
Tells you if an attribute is a date dimension.
Tells you if an attribute is a date dimension .
None
Boolean