Class: Appsignal::Extension::Jruby::Data Private
- Includes:
- StringHelpers
- Defined in:
- lib/appsignal/extension/jruby.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #pointer ⇒ Object readonly private
Instance Method Summary collapse
- #==(other) ⇒ Object private
- #append_boolean(value) ⇒ Object private
- #append_data(value) ⇒ Object private
- #append_float(value) ⇒ Object private
- #append_integer(value) ⇒ Object private
- #append_nil ⇒ Object private
- #append_string(value) ⇒ Object private
-
#initialize(pointer) ⇒ Data
constructor
private
A new instance of Data.
- #set_boolean(key, value) ⇒ Object private
- #set_data(key, value) ⇒ Object private
- #set_float(key, value) ⇒ Object private
- #set_integer(key, value) ⇒ Object private
-
#set_nil(key) ⇒ Object
private
rubocop:disable Style/AccessorMethodName.
- #set_string(key, value) ⇒ Object private
- #to_s ⇒ Object private
Methods included from StringHelpers
#make_appsignal_string, #make_ruby_string
Constructor Details
#initialize(pointer) ⇒ Data
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Data.
369 370 371 372 373 374 |
# File 'lib/appsignal/extension/jruby.rb', line 369 def initialize(pointer) @pointer = FFI::AutoPointer.new( pointer, Extension.method(:appsignal_free_data) ) end |
Instance Attribute Details
#pointer ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
367 368 369 |
# File 'lib/appsignal/extension/jruby.rb', line 367 def pointer @pointer end |
Instance Method Details
#==(other) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
450 451 452 |
# File 'lib/appsignal/extension/jruby.rb', line 450 def ==(other) Extension.appsignal_data_equal(pointer, other.pointer) end |
#append_boolean(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
438 439 440 |
# File 'lib/appsignal/extension/jruby.rb', line 438 def append_boolean(value) Extension.appsignal_data_array_append_boolean(pointer, value) end |
#append_data(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
446 447 448 |
# File 'lib/appsignal/extension/jruby.rb', line 446 def append_data(value) Extension.appsignal_data_array_append_data(pointer, value.pointer) end |
#append_float(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
434 435 436 |
# File 'lib/appsignal/extension/jruby.rb', line 434 def append_float(value) Extension.appsignal_data_array_append_float(pointer, value) end |
#append_integer(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
430 431 432 |
# File 'lib/appsignal/extension/jruby.rb', line 430 def append_integer(value) Extension.appsignal_data_array_append_integer(pointer, value) end |
#append_nil ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
442 443 444 |
# File 'lib/appsignal/extension/jruby.rb', line 442 def append_nil Extension.appsignal_data_array_append_null(pointer) end |
#append_string(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
423 424 425 426 427 428 |
# File 'lib/appsignal/extension/jruby.rb', line 423 def append_string(value) Extension.appsignal_data_array_append_string( pointer, make_appsignal_string(value) ) end |
#set_boolean(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
400 401 402 403 404 405 406 |
# File 'lib/appsignal/extension/jruby.rb', line 400 def set_boolean(key, value) Extension.appsignal_data_map_set_boolean( pointer, make_appsignal_string(key), value ) end |
#set_data(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
415 416 417 418 419 420 421 |
# File 'lib/appsignal/extension/jruby.rb', line 415 def set_data(key, value) Extension.appsignal_data_map_set_data( pointer, make_appsignal_string(key), value.pointer ) end |
#set_float(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
392 393 394 395 396 397 398 |
# File 'lib/appsignal/extension/jruby.rb', line 392 def set_float(key, value) Extension.appsignal_data_map_set_float( pointer, make_appsignal_string(key), value ) end |
#set_integer(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
384 385 386 387 388 389 390 |
# File 'lib/appsignal/extension/jruby.rb', line 384 def set_integer(key, value) Extension.appsignal_data_map_set_integer( pointer, make_appsignal_string(key), value ) end |
#set_nil(key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
rubocop:disable Style/AccessorMethodName
408 409 410 411 412 413 |
# File 'lib/appsignal/extension/jruby.rb', line 408 def set_nil(key) # rubocop:disable Style/AccessorMethodName Extension.appsignal_data_map_set_null( pointer, make_appsignal_string(key) ) end |
#set_string(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
376 377 378 379 380 381 382 |
# File 'lib/appsignal/extension/jruby.rb', line 376 def set_string(key, value) Extension.appsignal_data_map_set_string( pointer, make_appsignal_string(key), make_appsignal_string(value) ) end |