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
50 51 52 |
# File 'lib/libcouchbase/connection.rb', line 50 def cmd @cmd end |
#defer ⇒ Object
Returns the value of attribute defer
50 51 52 |
# File 'lib/libcouchbase/connection.rb', line 50 def defer @defer end |
#key ⇒ Object
Returns the value of attribute key
50 51 52 |
# File 'lib/libcouchbase/connection.rb', line 50 def key @key end |
#value ⇒ Object
Returns the value of attribute value
50 51 52 |
# File 'lib/libcouchbase/connection.rb', line 50 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
52 53 54 55 56 57 |
# File 'lib/libcouchbase/connection.rb', line 52 def ref(string) @refs ||= [] str = FFI::MemoryPointer.from_string(string) @refs << str str end |