Class: Icalendar::Offset::ActiveSupportExact

Inherits:
Icalendar::Offset show all
Defined in:
lib/icalendar/offset/active_support_exact.rb

Instance Method Summary collapse

Methods inherited from Icalendar::Offset

build, #initialize, #normalized_tzid

Constructor Details

This class inherits a constructor from Icalendar::Offset

Instance Method Details

#normalized_valueObject



10
11
12
13
14
# File 'lib/icalendar/offset/active_support_exact.rb', line 10

def normalized_value
  Icalendar.logger.debug("Plan a - parsing #{value}/#{tzid} as ActiveSupport::TimeWithZone")
  # plan a - use ActiveSupport::TimeWithZone
  Icalendar::Values::Helpers::ActiveSupportTimeWithZoneAdapter.new(nil, tz, value)
end

#valid?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/icalendar/offset/active_support_exact.rb', line 6

def valid?
  support_classes_defined? && tz
end