Class: Sigma::ErgoBoxAssetsData
- Inherits:
-
Object
- Object
- Sigma::ErgoBoxAssetsData
- Extended by:
- FFI::Library
- Defined in:
- lib/sigma/ergo_box.rb
Instance Attribute Summary collapse
-
#pointer ⇒ Object
Returns the value of attribute pointer.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#pointer ⇒ Object
Returns the value of attribute pointer.
458 459 460 |
# File 'lib/sigma/ergo_box.rb', line 458 def pointer @pointer end |
Class Method Details
.create(box_value:, tokens:) ⇒ Object
460 461 462 463 464 |
# File 'lib/sigma/ergo_box.rb', line 460 def self.create(box_value:, tokens:) pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_ergo_box_assets_data_new(box_value.pointer, tokens.pointer, pointer) init(pointer) end |
.with_raw_pointer(pointer) ⇒ Object
466 467 468 |
# File 'lib/sigma/ergo_box.rb', line 466 def self.with_raw_pointer(pointer) init(pointer) end |
Instance Method Details
#==(eb_asset_data_two) ⇒ Object
482 483 484 |
# File 'lib/sigma/ergo_box.rb', line 482 def ==(eb_asset_data_two) ergo_lib_ergo_box_assets_data_eq(self.pointer, eb_asset_data_two.pointer) end |
#get_box_tokens ⇒ Object
476 477 478 479 480 |
# File 'lib/sigma/ergo_box.rb', line 476 def get_box_tokens pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_ergo_box_assets_data_tokens(self.pointer, pointer) Sigma::Tokens.with_raw_pointer(pointer) end |
#get_box_value ⇒ Object
470 471 472 473 474 |
# File 'lib/sigma/ergo_box.rb', line 470 def get_box_value pointer = FFI::MemoryPointer.new(:pointer) ergo_lib_ergo_box_assets_data_value(self.pointer, pointer) Sigma::BoxValue.with_raw_pointer(pointer) end |