Class: Libcouchbase::Connection::Request
- Inherits:
-
Struct
- Object
- Struct
- Libcouchbase::Connection::Request
- Defined in:
- lib/libcouchbase/connection.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#defer ⇒ Object
Returns the value of attribute defer.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#ref(string) ⇒ Object
We need to hold a reference to c-strings so they are not GC’d.
Instance Attribute Details
#cmd ⇒ Object
Returns the value of attribute cmd
52 53 54 |
# File 'lib/libcouchbase/connection.rb', line 52 def cmd @cmd end |
#defer ⇒ Object
Returns the value of attribute defer
52 53 54 |
# File 'lib/libcouchbase/connection.rb', line 52 def defer @defer end |
#key ⇒ Object
Returns the value of attribute key
52 53 54 |
# File 'lib/libcouchbase/connection.rb', line 52 def key @key end |
#value ⇒ Object
Returns the value of attribute value
52 53 54 |
# File 'lib/libcouchbase/connection.rb', line 52 def value @value end |
Instance Method Details
#ref(string) ⇒ Object
We need to hold a reference to c-strings so they are not GC’d
54 55 56 57 58 59 |
# File 'lib/libcouchbase/connection.rb', line 54 def ref(string) @refs ||= [] str = FFI::MemoryPointer.from_string(string) @refs << str str end |