Class: Runar::SDK::StateField
- Inherits:
-
Struct
- Object
- Struct
- Runar::SDK::StateField
- Defined in:
- lib/runar/sdk/types.rb
Overview
A state field in a stateful contract.
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#initial_value ⇒ Object
Returns the value of attribute initial_value.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name:, type:, index:, initial_value: nil) ⇒ StateField
constructor
A new instance of StateField.
Constructor Details
#initialize(name:, type:, index:, initial_value: nil) ⇒ StateField
Returns a new instance of StateField.
56 57 58 |
# File 'lib/runar/sdk/types.rb', line 56 def initialize(name:, type:, index:, initial_value: nil) super end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
55 56 57 |
# File 'lib/runar/sdk/types.rb', line 55 def index @index end |
#initial_value ⇒ Object
Returns the value of attribute initial_value
55 56 57 |
# File 'lib/runar/sdk/types.rb', line 55 def initial_value @initial_value end |
#name ⇒ Object
Returns the value of attribute name
55 56 57 |
# File 'lib/runar/sdk/types.rb', line 55 def name @name end |
#type ⇒ Object
Returns the value of attribute type
55 56 57 |
# File 'lib/runar/sdk/types.rb', line 55 def type @type end |