class TonSdk::Crypto::ParamsOfAppSigningBox

Constants

TYPES

Attributes

type_[R]
unsigned[R]

Public Class Methods

new(type_:, unsigned:) click to toggle source
# File lib/ton_sdk_client/crypto.rb, line 259
def initialize(type_:, unsigned:)
  unless TYPES.include?(type_)
    raise ArgumentError.new("type #{type_} is unknown; known types: #{TYPES}")
  end
  @type_ = type_
  @unsigned = unsigned
end

Public Instance Methods

to_h() click to toggle source
# File lib/ton_sdk_client/crypto.rb, line 267
def to_h
  {
    type: Helper.sym_to_capitalized_case_str(@type_),
    unsigned: @unsigned
  }
end