Module: Vox::ETF

Defined in:
lib/vox/etf/version.rb,
ext/vox/etf.cpp

Overview

Default ETF adapter for vox’s gateway component.

Constant Summary collapse

VERSION =

Gem version

'0.1.9'

Class Method Summary collapse

Class Method Details

.decode(input) ⇒ Object

Decode an ETF term from a string.

Parameters:

  • input (String)

    The ETF term to be decoded.

Returns:

  • (Object)

    The ETF term decoded to an object.



4
5
# File 'lib/vox/etf/version.rb', line 4

def self.decode(input)
end

.encode(input) ⇒ String

Encode an object to an ETF term. This method accepts, ‘Integer`, `Float`, `String`, `Symbol`, `Hash`, `Array`, `nil`, `true`, and `false` objects. It also allows any object that responds to `#to_hash => Hash`.

Parameters:

  • input (Object, #to_hash)

    The object to be encoded as an ETF term.

Returns:

  • (String)

    The ETF term encoded as a packed string.



6
7
# File 'lib/vox/etf/version.rb', line 6

def self.encode(input)
end