Sha256: e61a54388246262337fcc8de17928657fc9e4b0a8830826870743137ca512b56

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

module TimeCrisis
  module TZInfo
    # Represents a timezone defined in a data module.
    class TimezoneInfo #:nodoc:

      # The timezone identifier.
      attr_reader :identifier

      # Constructs a new TimezoneInfo with an identifier.
      def initialize(identifier)
        @identifier = identifier
      end

      # Returns internal object state as a programmer-readable string.
      def inspect
        "#<#{self.class}: #@identifier>"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
time_crisis-0.3.5 lib/time_crisis/tzinfo/timezone_info.rb
time_crisis-0.3.2 lib/time_crisis/tzinfo/timezone_info.rb
time_crisis-0.3.1 lib/time_crisis/tzinfo/timezone_info.rb
time_crisis-0.3.0 lib/time_crisis/tzinfo/timezone_info.rb
time_crisis-0.2.0 lib/time_crisis/tzinfo/timezone_info.rb