class TonSdk::Tvm::AccountForExecutor
Constants
- TYPES
Attributes
boc[R]
type_[R]
unlimited_balance[R]
Public Class Methods
new_with_type_account(boc:, unlimited_balance: nil)
click to toggle source
# File lib/ton_sdk_client/tvm.rb, line 45 def self.new_with_type_account(boc:, unlimited_balance: nil) @type_ = :account @boc = boc @unlimited_balance = unlimited_balance end
new_with_type_none()
click to toggle source
# File lib/ton_sdk_client/tvm.rb, line 37 def self.new_with_type_none @type_ = :none end
new_with_type_uninit()
click to toggle source
# File lib/ton_sdk_client/tvm.rb, line 41 def self.new_with_type_uninit @type_ = :uninit end
Public Instance Methods
to_h()
click to toggle source
# File lib/ton_sdk_client/tvm.rb, line 51 def to_h h1 = case @type_ when :none, :uninit { type: Helper.sym_to_capitalized_case_str(@type_), } when :account { type: Helper.sym_to_capitalized_case_str(@type_), boc: @boc, unlimited_balance: @unlimited_balance } end end