Class: Aerospike::BoolValue
Overview
Boolean value. This is private, and only used internally for bitwise CDTs
Instance Method Summary collapse
- #estimate_size ⇒ Object
- #get ⇒ Object
-
#initialize(val) ⇒ BoolValue
constructor
:nodoc:.
- #pack(packer) ⇒ Object
- #to_bytes ⇒ Object
- #to_s ⇒ Object
- #type ⇒ Object
- #write(buffer, offset) ⇒ Object
Methods inherited from Value
Constructor Details
#initialize(val) ⇒ BoolValue
:nodoc:
664 665 666 667 |
# File 'lib/aerospike/value/value.rb', line 664 def initialize(val) @value = val || false self end |
Instance Method Details
#estimate_size ⇒ Object
669 670 671 |
# File 'lib/aerospike/value/value.rb', line 669 def estimate_size 1 end |
#get ⇒ Object
685 686 687 |
# File 'lib/aerospike/value/value.rb', line 685 def get @value end |
#pack(packer) ⇒ Object
677 678 679 |
# File 'lib/aerospike/value/value.rb', line 677 def pack(packer) packer.write(@value) end |
#to_bytes ⇒ Object
689 690 691 |
# File 'lib/aerospike/value/value.rb', line 689 def to_bytes raise Exception.new("Unreachable") end |
#to_s ⇒ Object
693 694 695 |
# File 'lib/aerospike/value/value.rb', line 693 def to_s @value.to_s end |
#type ⇒ Object
681 682 683 |
# File 'lib/aerospike/value/value.rb', line 681 def type raise Exception.new("Unreachable") end |
#write(buffer, offset) ⇒ Object
673 674 675 |
# File 'lib/aerospike/value/value.rb', line 673 def write(buffer, offset) raise Exception.new("Unreachable") end |