Class: MPXJ::CalendarDay
- Defined in:
- lib/mpxj/calendar_day.rb
Overview
Represents a calendar day
Instance Attribute Summary collapse
-
#hours ⇒ Object
readonly
Returns the value of attribute hours.
Attributes inherited from Container
#attribute_values, #parent_project
Instance Method Summary collapse
-
#initialize(parent_project, attribute_values) ⇒ CalendarDay
constructor
A new instance of CalendarDay.
-
#type ⇒ String
Retrieve the day type.
Constructor Details
#initialize(parent_project, attribute_values) ⇒ CalendarDay
Returns a new instance of CalendarDay.
6 7 8 9 |
# File 'lib/mpxj/calendar_day.rb', line 6 def initialize(parent_project, attribute_values) super(parent_project, attribute_values.slice('type')) process_hours(attribute_values) end |
Instance Attribute Details
#hours ⇒ Object (readonly)
Returns the value of attribute hours.
4 5 6 |
# File 'lib/mpxj/calendar_day.rb', line 4 def hours @hours end |
Instance Method Details
#type ⇒ String
Retrieve the day type
14 15 16 |
# File 'lib/mpxj/calendar_day.rb', line 14 def type attribute_values['type'] end |