Class: TaskJuggler::LeaveAllowance
- Defined in:
- lib/taskjuggler/LeaveList.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#slots ⇒ Object
Returns the value of attribute slots.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, date, slots) ⇒ LeaveAllowance
constructor
A new instance of LeaveAllowance.
Constructor Details
#initialize(type, date, slots) ⇒ LeaveAllowance
Returns a new instance of LeaveAllowance.
69 70 71 72 73 74 |
# File 'lib/taskjuggler/LeaveList.rb', line 69 def initialize(type, date, slots) unless Leave::Types[type] raise ArgumentError, "Unsupported leave type #{type}" end super end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
67 68 69 |
# File 'lib/taskjuggler/LeaveList.rb', line 67 def date @date end |
#slots ⇒ Object
Returns the value of attribute slots
67 68 69 |
# File 'lib/taskjuggler/LeaveList.rb', line 67 def slots @slots end |
#type ⇒ Object
Returns the value of attribute type
67 68 69 |
# File 'lib/taskjuggler/LeaveList.rb', line 67 def type @type end |