Class: Icalendar::Offset::Null

Inherits:
Icalendar::Offset show all
Defined in:
lib/icalendar/offset/null.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/null.rb', line 10

def normalized_value
  # plan d - just ignore the tzid
  Icalendar.logger.info("Ignoring timezone #{tzid} for time #{value}")
  nil
end

#valid?Boolean

Returns:

  • (Boolean)


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

def valid?
  true
end