class TimePeriod

Public Instance Methods

custom(value) click to toggle source
# File lib/employees/gml/timePeriod.rb, line 13
def custom(value)
        begin_time, end_time = value.split " "
        position("begin", begin_time) + position("end", end_time)
end
do(tasks) click to toggle source
# File lib/employees/gml/timePeriod.rb, line 3
def do(tasks)
        task = tasks[0]
        if typeOf task, is: Hash
                checkAttributesIn task
                tag task[:range].to_a[0]
        elsif typeOf task, is: String
                tag task.to_a[0]
        end
end
namespace() click to toggle source
# File lib/employees/gml/timePeriod.rb, line 26
def namespace
        "gml:"
end
position(where, time) click to toggle source
# File lib/employees/gml/timePeriod.rb, line 18
def position(where, time)
        "<gml:#{where}Position>#{time}</gml:#{where}Position>"
end
tag_name() click to toggle source
# File lib/employees/gml/timePeriod.rb, line 22
def tag_name
        class_name
end