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.
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
#date ⇒ Object
Returns the value of attribute date
68 69 70 |
# File 'lib/taskjuggler/LeaveList.rb', line 68 def date @date end |
#slots ⇒ Object
Returns the value of attribute slots
68 69 70 |
# File 'lib/taskjuggler/LeaveList.rb', line 68 def slots @slots end |
#type ⇒ Object
Returns the value of attribute type
68 69 70 |
# File 'lib/taskjuggler/LeaveList.rb', line 68 def type @type end |