Class: RTransmission::Types::Priority
- Inherits:
-
RTransmission::Type
- Object
- RTransmission::Type
- RTransmission::Types::Priority
- Defined in:
- lib/rtransmission/types/priority.rb
Constant Summary collapse
- MAP =
{-1 => :low, 0 => :normal, 1 => :high}
Class Method Summary collapse
Methods inherited from RTransmission::Type
attribute, #initialize, type_to_class
Constructor Details
This class inherits a constructor from RTransmission::Type
Class Method Details
.map(value) ⇒ Object
14 15 16 |
# File 'lib/rtransmission/types/priority.rb', line 14 def self.map(value) MAP.key(value) end |
.unmap(value) ⇒ Object
10 11 12 |
# File 'lib/rtransmission/types/priority.rb', line 10 def self.unmap(value) MAP[value] end |