class TZInfo::TimezoneProxy

A proxy class standing in for a {Timezone} with a given identifier. {TimezoneProxy} inherits from {Timezone} and can be treated identically to {Timezone} instances loaded with {Timezone.get}.

{TimezoneProxy} instances are used to avoid the performance overhead of loading time zone data into memory, for example, by {Timezone.all}.

The first time an attempt is made to access the data for the time zone, the real {Timezone} will be loaded is loaded. If the proxy’s identifier was not valid, then an exception will be raised at this point.