Class: Twilic::Core::Model::ControlOpcode

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

Defined Under Namespace

Classes: Entry

Constant Summary collapse

REGISTER_KEYS =
Entry.new(0)
REGISTER_SHAPE =
Entry.new(1)
REGISTER_STRINGS =
Entry.new(2)
PROMOTE_STRING_FIELD_TO_ENUM =
Entry.new(3)
RESET_TABLES =
Entry.new(4)
RESET_STATE =
Entry.new(5)

Class Method Summary collapse

Class Method Details

.from_byte(b) ⇒ Object



183
184
185
186
187
# File 'lib/twilic/core/model.rb', line 183

def self.from_byte(b)
  return Entry.new(b) if (0..5).cover?(b)

  nil
end