Class: TigerBeetle::Converters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tigerbeetle/converters/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_native(ptr) ⇒ Object



4
5
6
# File 'lib/tigerbeetle/converters/base.rb', line 4

def self.from_native(ptr)
  self.new.from_native(ptr)
end

.native_typeObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/tigerbeetle/converters/base.rb', line 12

def self.native_type
  raise NotImplementedError, 'Implement in sublcass'
end

.to_native(ptr, value) ⇒ Object



8
9
10
# File 'lib/tigerbeetle/converters/base.rb', line 8

def self.to_native(ptr, value)
  self.new.to_native(ptr, value)
end

Instance Method Details

#from_native(ptr) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/tigerbeetle/converters/base.rb', line 16

def from_native(ptr)
  raise NotImplementedError, 'Implement in sublcass'
end

#to_native(ptr, value) ⇒ Object

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/tigerbeetle/converters/base.rb', line 20

def to_native(ptr, value)
  raise NotImplementedError, 'Implement in sublcass'
end