Class: Mpp::Methods::Evm::Assets::Asset

Inherits:
Struct
  • Object
show all
Defined in:
lib/mpp/methods/evm/assets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



9
10
11
# File 'lib/mpp/methods/evm/assets.rb', line 9

def address
  @address
end

#chain_idObject

Returns the value of attribute chain_id

Returns:

  • (Object)

    the current value of chain_id



9
10
11
# File 'lib/mpp/methods/evm/assets.rb', line 9

def chain_id
  @chain_id
end

#decimalsObject

Returns the value of attribute decimals

Returns:

  • (Object)

    the current value of decimals



9
10
11
# File 'lib/mpp/methods/evm/assets.rb', line 9

def decimals
  @decimals
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/mpp/methods/evm/assets.rb', line 9

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



9
10
11
# File 'lib/mpp/methods/evm/assets.rb', line 9

def version
  @version
end

Instance Method Details

#networkObject



10
11
12
# File 'lib/mpp/methods/evm/assets.rb', line 10

def network
  "eip155:#{chain_id}"
end