Class: JsonFfiClient::Response
- Inherits:
-
FFI::AutoPointer
- Object
- FFI::AutoPointer
- JsonFfiClient::Response
- Defined in:
- lib/json_ffi_client.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
7 8 9 |
# File 'lib/json_ffi_client.rb', line 7 def self.release(ptr) Connection.free(ptr) end |
Instance Method Details
#body ⇒ Object
11 12 13 |
# File 'lib/json_ffi_client.rb', line 11 def body @body ||= JSON.parse(self.read_string).delete_if{|k,v| v.nil?} end |
#env ⇒ Object
15 16 17 |
# File 'lib/json_ffi_client.rb', line 15 def env {} end |