Class TaskJuggler::DateAttribute
In: lib/taskjuggler/Attributes.rb
Parent: AttributeBase

Methods

new   tjpId   to_s  

Public Class methods

[Source]

# File lib/taskjuggler/Attributes.rb, line 201
    def initialize(property, type, container)
      super
    end

[Source]

# File lib/taskjuggler/Attributes.rb, line 213
    def DateAttribute::tjpId
      'date'
    end

Public Instance methods

[Source]

# File lib/taskjuggler/Attributes.rb, line 205
    def to_s(query = nil)
      if (v = get)
        v.to_s(query ? query.timeFormat : '%Y-%m-%d')
      else
        'Error'
      end
    end

[Validate]