Class: Runar::SDK::ABIMethod

Inherits:
Struct
  • Object
show all
Defined in:
lib/runar/sdk/types.rb

Overview

A contract method descriptor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, params: [], is_public: true, is_terminal: nil) ⇒ ABIMethod

Returns a new instance of ABIMethod.



42
43
44
# File 'lib/runar/sdk/types.rb', line 42

def initialize(name:, params: [], is_public: true, is_terminal: nil)
  super
end

Instance Attribute Details

#is_publicObject

Returns the value of attribute is_public

Returns:

  • (Object)

    the current value of is_public



41
42
43
# File 'lib/runar/sdk/types.rb', line 41

def is_public
  @is_public
end

#is_terminalObject

Returns the value of attribute is_terminal

Returns:

  • (Object)

    the current value of is_terminal



41
42
43
# File 'lib/runar/sdk/types.rb', line 41

def is_terminal
  @is_terminal
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



41
42
43
# File 'lib/runar/sdk/types.rb', line 41

def name
  @name
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



41
42
43
# File 'lib/runar/sdk/types.rb', line 41

def params
  @params
end