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.



70
71
72
73
74
75
# File 'lib/taskjuggler/LeaveList.rb', line 70

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



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

def date
  @date
end

#slotsObject

Returns the value of attribute slots

Returns:

  • (Object)

    the current value of slots



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

def slots
  @slots
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end