Class: TEALrb::Enums::TxnType
- Inherits:
-
Object
- Object
- TEALrb::Enums::TxnType
- Defined in:
- lib/tealrb/enums.rb
Instance Method Summary collapse
- #application_call ⇒ Object
- #asset_config ⇒ Object
- #asset_freeze ⇒ Object
- #asset_transfer ⇒ Object
-
#initialize(contract) ⇒ TxnType
constructor
A new instance of TxnType.
- #key_registration ⇒ Object
- #pay ⇒ Object
- #unknown ⇒ Object
Constructor Details
#initialize(contract) ⇒ TxnType
Returns a new instance of TxnType.
6 7 8 |
# File 'lib/tealrb/enums.rb', line 6 def initialize(contract) @contract = contract end |
Instance Method Details
#application_call ⇒ Object
34 35 36 |
# File 'lib/tealrb/enums.rb', line 34 def application_call txn_type_int 'appl' end |
#asset_config ⇒ Object
22 23 24 |
# File 'lib/tealrb/enums.rb', line 22 def asset_config txn_type_int 'acfg' end |
#asset_freeze ⇒ Object
30 31 32 |
# File 'lib/tealrb/enums.rb', line 30 def asset_freeze txn_type_int 'afrz' end |
#asset_transfer ⇒ Object
26 27 28 |
# File 'lib/tealrb/enums.rb', line 26 def asset_transfer txn_type_int 'axfer' end |
#key_registration ⇒ Object
18 19 20 |
# File 'lib/tealrb/enums.rb', line 18 def key_registration txn_type_int 'keyreg' end |
#pay ⇒ Object
14 15 16 |
# File 'lib/tealrb/enums.rb', line 14 def pay txn_type_int 'pay' end |
#unknown ⇒ Object
10 11 12 |
# File 'lib/tealrb/enums.rb', line 10 def unknown txn_type_int 'unknown' end |