Class: Twilic::Core::Model::NullStrategy

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

Defined Under Namespace

Classes: Entry

Constant Summary collapse

NONE =
Entry.new(0)
PRESENCE_BITMAP =
Entry.new(1)
INVERTED_PRESENCE_BITMAP =
Entry.new(2)
ALL_PRESENT_ELIDED =
Entry.new(3)

Class Method Summary collapse

Class Method Details

.from_byte(b) ⇒ Object



163
164
165
166
167
# File 'lib/twilic/core/model.rb', line 163

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

  nil
end