Class: TonSdkRubySmc::PWV2Transfer

Inherits:
Object
  • Object
show all
Extended by:
TonSdkRuby, TonSdkRubySmc
Defined in:
lib/ton-sdk-ruby-smc/wallets/pwv2.rb

Constant Summary

Constants included from TonSdkRubySmc

PWV2_CODE, TOKEN_ATTRIBUTES_SHA256, VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TonSdkRubySmc

require_type

Constructor Details

#initialize(destination, bounce, value, mode, body = nil, init = nil) ⇒ PWV2Transfer

Returns a new instance of PWV2Transfer.



50
51
52
53
54
55
56
57
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 50

def initialize(destination, bounce, value, mode, body = nil, init = nil)
  @destination = destination # Address
  @bounce = bounce # Boolean
  @value = value  # Coins
  @mode = mode # Integer
  @body = body # Cell
  @init = init # StateInit
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



48
49
50
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 48

def body
  @body
end

#bounceObject

Returns the value of attribute bounce.



48
49
50
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 48

def bounce
  @bounce
end

#destinationObject

Returns the value of attribute destination.



48
49
50
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 48

def destination
  @destination
end

#initObject

Returns the value of attribute init.



48
49
50
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 48

def init
  @init
end

#modeObject

Returns the value of attribute mode.



48
49
50
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 48

def mode
  @mode
end

#valueObject

Returns the value of attribute value.



48
49
50
# File 'lib/ton-sdk-ruby-smc/wallets/pwv2.rb', line 48

def value
  @value
end