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
- #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.
553 554 555 556 557 558 |
# File 'lib/appsignal/extension/jruby.rb', line 553 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.
551 552 553 |
# File 'lib/appsignal/extension/jruby.rb', line 551 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.
634 635 636 |
# File 'lib/appsignal/extension/jruby.rb', line 634 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.
622 623 624 |
# File 'lib/appsignal/extension/jruby.rb', line 622 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.
630 631 632 |
# File 'lib/appsignal/extension/jruby.rb', line 630 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.
618 619 620 |
# File 'lib/appsignal/extension/jruby.rb', line 618 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.
614 615 616 |
# File 'lib/appsignal/extension/jruby.rb', line 614 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.
626 627 628 |
# File 'lib/appsignal/extension/jruby.rb', line 626 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.
607 608 609 610 611 612 |
# File 'lib/appsignal/extension/jruby.rb', line 607 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.
584 585 586 587 588 589 590 |
# File 'lib/appsignal/extension/jruby.rb', line 584 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.
599 600 601 602 603 604 605 |
# File 'lib/appsignal/extension/jruby.rb', line 599 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.
576 577 578 579 580 581 582 |
# File 'lib/appsignal/extension/jruby.rb', line 576 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.
568 569 570 571 572 573 574 |
# File 'lib/appsignal/extension/jruby.rb', line 568 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.
592 593 594 595 596 597 |
# File 'lib/appsignal/extension/jruby.rb', line 592 def set_nil(key) 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.
560 561 562 563 564 565 566 |
# File 'lib/appsignal/extension/jruby.rb', line 560 def set_string(key, value) Extension.appsignal_data_map_set_string( pointer, make_appsignal_string(key), make_appsignal_string(value) ) end |
#to_s ⇒ 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.
638 639 640 |
# File 'lib/appsignal/extension/jruby.rb', line 638 def to_s make_ruby_string Extension.appsignal_data_to_json(pointer) end |