Class: TEALrb::Asset
- Inherits:
-
OpcodeType
- Object
- OpcodeType
- TEALrb::Asset
- Defined in:
- lib/tealrb/asset.rb
Instance Method Summary collapse
- #clawback ⇒ Object
- #clawback? ⇒ Boolean
- #creator ⇒ Object
- #creator? ⇒ Boolean
- #decimals ⇒ Object
- #decimals? ⇒ Boolean
- #default_frozen ⇒ Object
- #default_frozen? ⇒ Boolean
- #freeze ⇒ Object
- #freeze? ⇒ Boolean
-
#initialize(contract) ⇒ Asset
constructor
A new instance of Asset.
- #manager ⇒ Object
- #manager? ⇒ Boolean
- #metadata_hash ⇒ Object
- #metadata_hash? ⇒ Boolean
- #name ⇒ Object
- #name? ⇒ Boolean
- #reserve ⇒ Object
- #reserve? ⇒ Boolean
- #total ⇒ Object
- #total? ⇒ Boolean
- #unit_name ⇒ Object
- #unit_name? ⇒ Boolean
- #url ⇒ Object
- #url? ⇒ Boolean
Methods inherited from OpcodeType
Constructor Details
#initialize(contract) ⇒ Asset
Returns a new instance of Asset.
5 6 7 8 |
# File 'lib/tealrb/asset.rb', line 5 def initialize(contract) @field = 'Assets' super end |
Instance Method Details
#clawback ⇒ Object
50 51 52 |
# File 'lib/tealrb/asset.rb', line 50 def clawback @contract.asset_param_value 'AssetClawback' end |
#clawback? ⇒ Boolean
98 99 100 |
# File 'lib/tealrb/asset.rb', line 98 def clawback? @contract.asset_param_exists? 'AssetClawback' end |
#creator ⇒ Object
54 55 56 |
# File 'lib/tealrb/asset.rb', line 54 def creator @contract.asset_param_value 'AssetCreator' end |
#creator? ⇒ Boolean
102 103 104 |
# File 'lib/tealrb/asset.rb', line 102 def creator? @contract.asset_param_exists? 'AssetCreator' end |
#decimals ⇒ Object
14 15 16 |
# File 'lib/tealrb/asset.rb', line 14 def decimals @contract.asset_param_value 'AssetDecimals' end |
#decimals? ⇒ Boolean
62 63 64 |
# File 'lib/tealrb/asset.rb', line 62 def decimals? @contract.asset_param_exists? 'AssetDecimals' end |
#default_frozen ⇒ Object
18 19 20 |
# File 'lib/tealrb/asset.rb', line 18 def default_frozen @contract.asset_param_value 'AssetDefaultFrozen' end |
#default_frozen? ⇒ Boolean
66 67 68 |
# File 'lib/tealrb/asset.rb', line 66 def default_frozen? @contract.asset_param_exists? 'AssetDefaultFrozen' end |
#freeze ⇒ Object
46 47 48 |
# File 'lib/tealrb/asset.rb', line 46 def freeze @contract.asset_param_value 'AssetFreeze' end |
#freeze? ⇒ Boolean
94 95 96 |
# File 'lib/tealrb/asset.rb', line 94 def freeze? @contract.asset_param_exists? 'AssetFreeze' end |
#manager ⇒ Object
38 39 40 |
# File 'lib/tealrb/asset.rb', line 38 def manager @contract.asset_param_value 'AssetManager' end |
#manager? ⇒ Boolean
86 87 88 |
# File 'lib/tealrb/asset.rb', line 86 def manager? @contract.asset_param_exists? 'AssetManager' end |
#metadata_hash ⇒ Object
34 35 36 |
# File 'lib/tealrb/asset.rb', line 34 def @contract.asset_param_value 'AssetMetadataHash' end |
#metadata_hash? ⇒ Boolean
82 83 84 |
# File 'lib/tealrb/asset.rb', line 82 def @contract.asset_param_exists? 'AssetMetadataHash' end |
#name ⇒ Object
22 23 24 |
# File 'lib/tealrb/asset.rb', line 22 def name @contract.asset_param_value 'AssetName' end |
#name? ⇒ Boolean
70 71 72 |
# File 'lib/tealrb/asset.rb', line 70 def name? @contract.asset_param_exists? 'AssetName' end |
#reserve ⇒ Object
42 43 44 |
# File 'lib/tealrb/asset.rb', line 42 def reserve @contract.asset_param_value 'AssetReserve' end |
#reserve? ⇒ Boolean
90 91 92 |
# File 'lib/tealrb/asset.rb', line 90 def reserve? @contract.asset_param_exists? 'AssetReserve' end |
#total ⇒ Object
10 11 12 |
# File 'lib/tealrb/asset.rb', line 10 def total @contract.asset_param_value 'AssetTotal' end |
#total? ⇒ Boolean
58 59 60 |
# File 'lib/tealrb/asset.rb', line 58 def total? @contract.asset_param_exists? 'AssetTotal' end |
#unit_name ⇒ Object
26 27 28 |
# File 'lib/tealrb/asset.rb', line 26 def unit_name @contract.asset_param_value 'AssetUnitName' end |
#unit_name? ⇒ Boolean
74 75 76 |
# File 'lib/tealrb/asset.rb', line 74 def unit_name? @contract.asset_param_exists? 'AssetUnitName' end |
#url ⇒ Object
30 31 32 |
# File 'lib/tealrb/asset.rb', line 30 def url @contract.asset_param_value 'AssetURL' end |
#url? ⇒ Boolean
78 79 80 |
# File 'lib/tealrb/asset.rb', line 78 def url? @contract.asset_param_exists? 'AssetURL' end |