Class: TEALrb::Asset

Inherits:
OpcodeType show all
Defined in:
lib/tealrb/asset.rb

Instance Method Summary collapse

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

#clawbackObject



50
51
52
# File 'lib/tealrb/asset.rb', line 50

def clawback
  @contract.asset_param_value 'AssetClawback'
end

#clawback?Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/tealrb/asset.rb', line 98

def clawback?
  @contract.asset_param_exists? 'AssetClawback'
end

#creatorObject



54
55
56
# File 'lib/tealrb/asset.rb', line 54

def creator
  @contract.asset_param_value 'AssetCreator'
end

#creator?Boolean

Returns:

  • (Boolean)


102
103
104
# File 'lib/tealrb/asset.rb', line 102

def creator?
  @contract.asset_param_exists? 'AssetCreator'
end

#decimalsObject



14
15
16
# File 'lib/tealrb/asset.rb', line 14

def decimals
  @contract.asset_param_value 'AssetDecimals'
end

#decimals?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/tealrb/asset.rb', line 62

def decimals?
  @contract.asset_param_exists? 'AssetDecimals'
end

#default_frozenObject



18
19
20
# File 'lib/tealrb/asset.rb', line 18

def default_frozen
  @contract.asset_param_value 'AssetDefaultFrozen'
end

#default_frozen?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/tealrb/asset.rb', line 66

def default_frozen?
  @contract.asset_param_exists? 'AssetDefaultFrozen'
end

#freezeObject



46
47
48
# File 'lib/tealrb/asset.rb', line 46

def freeze
  @contract.asset_param_value 'AssetFreeze'
end

#freeze?Boolean

Returns:

  • (Boolean)


94
95
96
# File 'lib/tealrb/asset.rb', line 94

def freeze?
  @contract.asset_param_exists? 'AssetFreeze'
end

#managerObject



38
39
40
# File 'lib/tealrb/asset.rb', line 38

def manager
  @contract.asset_param_value 'AssetManager'
end

#manager?Boolean

Returns:

  • (Boolean)


86
87
88
# File 'lib/tealrb/asset.rb', line 86

def manager?
  @contract.asset_param_exists? 'AssetManager'
end

#metadata_hashObject



34
35
36
# File 'lib/tealrb/asset.rb', line 34

def 
  @contract.asset_param_value 'AssetMetadataHash'
end

#metadata_hash?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/tealrb/asset.rb', line 82

def 
  @contract.asset_param_exists? 'AssetMetadataHash'
end

#nameObject



22
23
24
# File 'lib/tealrb/asset.rb', line 22

def name
  @contract.asset_param_value 'AssetName'
end

#name?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/tealrb/asset.rb', line 70

def name?
  @contract.asset_param_exists? 'AssetName'
end

#reserveObject



42
43
44
# File 'lib/tealrb/asset.rb', line 42

def reserve
  @contract.asset_param_value 'AssetReserve'
end

#reserve?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/tealrb/asset.rb', line 90

def reserve?
  @contract.asset_param_exists? 'AssetReserve'
end

#totalObject



10
11
12
# File 'lib/tealrb/asset.rb', line 10

def total
  @contract.asset_param_value 'AssetTotal'
end

#total?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/tealrb/asset.rb', line 58

def total?
  @contract.asset_param_exists? 'AssetTotal'
end

#unit_nameObject



26
27
28
# File 'lib/tealrb/asset.rb', line 26

def unit_name
  @contract.asset_param_value 'AssetUnitName'
end

#unit_name?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/tealrb/asset.rb', line 74

def unit_name?
  @contract.asset_param_exists? 'AssetUnitName'
end

#urlObject



30
31
32
# File 'lib/tealrb/asset.rb', line 30

def url
  @contract.asset_param_value 'AssetURL'
end

#url?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/tealrb/asset.rb', line 78

def url?
  @contract.asset_param_exists? 'AssetURL'
end