Sha256: 13da47d245912facd44584ff8dfc4f6c2fd8d856c4b9a224e9eaa872bc17b36e
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
module MPXJ # Represents a calendar day class CalendarDay < Container attr_reader :hours def initialize(parent_project, attribute_values) super(parent_project, attribute_values.slice('type')) process_hours(attribute_values) end # Retrieve the day type # # @return [String] the calendar day type def type attribute_values['type'] end private def process_hours(attribute_values) @hours = (attribute_values['hours'] || {}).map do |hours| CalendarHours.new(parent_project, hours) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mpxj-13.7.0 | lib/mpxj/calendar_day.rb |