class DataTypes::UInt8

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method DataTypes::BaseType::new
# File lib/active_model_serializers_binary/data_types.rb, line 119
def initialize(options = {})
  super options.merge :bit_length => 8, :sign => :unsigned
end

Public Instance Methods

dump(value=nil) click to toggle source
# File lib/active_model_serializers_binary/data_types.rb, line 123
def dump(value=nil)
  before_dump( value )
  @raw_value = @value
end
load(raw_value) click to toggle source
# File lib/active_model_serializers_binary/data_types.rb, line 128
def load(raw_value)
  self.value = check_raw_value(raw_value)
  after_load
end