require 'beefcake'
class TestFalse
include Beefcake::Message
required :processed, :bool, 1, default: false
end
class TestTrue
include Beefcake::Message
required :processed, :bool, 1, default: true
end
puts TestTrue.new.encode
puts TestFalse.new.encode
This results in both getting:
Beefcake::Message::RequiredFieldNotSetError: Field processed is required but nil
They should just store the default value true and false.
I have this code:
This results in both getting: Beefcake::Message::RequiredFieldNotSetError: Field processed is required but nil They should just store the default value true and false.