Class: MPXJ::CalendarHours

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

Overview

Represents a range of hours

Instance Attribute Summary

Attributes inherited from Container

#attribute_values, #parent_project

Instance Method Summary collapse

Methods inherited from Container

#initialize

Constructor Details

This class inherits a constructor from MPXJ::Container

Instance Method Details

#fromTime

Retrieve the the start hour

Returns:

  • (Time)

    start hour



8
9
10
# File 'lib/mpxj/calendar_hours.rb', line 8

def from
  get_date_value(attribute_values['from'])
end

#toTime

Retrieve the the finish hour

Returns:

  • (Time)

    finish hour



15
16
17
# File 'lib/mpxj/calendar_hours.rb', line 15

def to
  get_date_value(attribute_values['to'])
end