Class: RTransmission::Types::Eta

Inherits:
RTransmission::Type show all
Defined in:
lib/rtransmission/types/eta.rb

Constant Summary collapse

MAP =
{-1 => :not_available, -2 => :unknown}

Class Method Summary collapse

Methods inherited from RTransmission::Type

attribute, #initialize, map, type_to_class

Constructor Details

This class inherits a constructor from RTransmission::Type

Class Method Details

.unmap(value) ⇒ Object



10
11
12
13
# File 'lib/rtransmission/types/eta.rb', line 10

def self.unmap(value)
  return value if value >= 0
  MAP[value]
end