Class: Aerospike::Bin
- Inherits:
-
Object
- Object
- Aerospike::Bin
- Defined in:
- lib/aerospike/bin.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(bin_name, bin_value) ⇒ Bin
constructor
A new instance of Bin.
- #to_s ⇒ Object
- #type ⇒ Object
- #value ⇒ Object
- #value=(val) ⇒ Object
- #value_object ⇒ Object
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/aerospike/bin.rb', line 21 def name @name end |
Instance Method Details
#to_s ⇒ Object
44 45 46 |
# File 'lib/aerospike/bin.rb', line 44 def to_s "#{@name}:#{@value.to_s}" end |
#type ⇒ Object
40 41 42 |
# File 'lib/aerospike/bin.rb', line 40 def type @value.type if @value end |
#value ⇒ Object
32 33 34 |
# File 'lib/aerospike/bin.rb', line 32 def value @value.get if @value end |
#value=(val) ⇒ Object
28 29 30 |
# File 'lib/aerospike/bin.rb', line 28 def value=(val) @value = Value.of(val) end |
#value_object ⇒ Object
36 37 38 |
# File 'lib/aerospike/bin.rb', line 36 def value_object @value end |