Class: TaskJuggler::LeaveAllowance

Inherits:
Struct
  • Object
show all
Defined in:
lib/taskjuggler/LeaveList.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, date, slots) ⇒ LeaveAllowance

Returns a new instance of LeaveAllowance.



68
69
70
71
72
73
# File 'lib/taskjuggler/LeaveList.rb', line 68

def initialize(type, date, slots)
  unless Leave::Types[type]
    raise ArgumentError, "Unsupported leave type #{type}"
  end
  super
end

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



66
67
68
# File 'lib/taskjuggler/LeaveList.rb', line 66

def date
  @date
end

#slotsObject

Returns the value of attribute slots

Returns:

  • (Object)

    the current value of slots



66
67
68
# File 'lib/taskjuggler/LeaveList.rb', line 66

def slots
  @slots
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



66
67
68
# File 'lib/taskjuggler/LeaveList.rb', line 66

def type
  @type
end