Class: MPXJ::CalendarDay

Inherits:
Container show all
Defined in:
lib/mpxj/calendar_day.rb

Overview

Represents a calendar day

Instance Attribute Summary collapse

Attributes inherited from Container

#attribute_values, #parent_project

Instance Method Summary collapse

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

#hoursObject (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

#typeString

Retrieve the day type

Returns:

  • (String)

    the calendar day type



14
15
16
# File 'lib/mpxj/calendar_day.rb', line 14

def type
  attribute_values['type']
end