Class: Twilic::Core::Session::DictionaryFallback

Inherits:
Object
  • Object
show all
Defined in:
lib/twilic/core/session.rb

Defined Under Namespace

Classes: Entry

Constant Summary collapse

FAIL_FAST =
Entry.new(:fail_fast)
STATELESS_RETRY =
Entry.new(:stateless_retry)

Class Method Summary collapse

Class Method Details

.from_byte(b) ⇒ Object



19
20
21
22
23
24
# File 'lib/twilic/core/session.rb', line 19

def self.from_byte(b)
  case b
  when 0 then FAIL_FAST
  when 1 then STATELESS_RETRY
  end
end