Class: Coinbase::Asset
- Inherits:
-
Object
- Object
- Coinbase::Asset
- Defined in:
- lib/coinbase/asset.rb
Overview
A representation of an Asset.
Instance Attribute Summary collapse
-
#address_id ⇒ Object
readonly
Returns the value of attribute address_id.
-
#asset_id ⇒ Object
readonly
Returns the value of attribute asset_id.
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#network_id ⇒ Object
readonly
Returns the value of attribute network_id.
Instance Method Summary collapse
-
#initialize(network_id:, asset_id:, display_name:, address_id: nil) ⇒ Asset
constructor
Returns a new Asset object.
Constructor Details
#initialize(network_id:, asset_id:, display_name:, address_id: nil) ⇒ Asset
Returns a new Asset object. Do not use this method. Instead, use the Asset constants defined in the Coinbase module.
14 15 16 17 18 19 |
# File 'lib/coinbase/asset.rb', line 14 def initialize(network_id:, asset_id:, display_name:, address_id: nil) @network_id = network_id @asset_id = asset_id @display_name = display_name @address_id = address_id end |
Instance Attribute Details
#address_id ⇒ Object (readonly)
Returns the value of attribute address_id.
6 7 8 |
# File 'lib/coinbase/asset.rb', line 6 def address_id @address_id end |
#asset_id ⇒ Object (readonly)
Returns the value of attribute asset_id.
6 7 8 |
# File 'lib/coinbase/asset.rb', line 6 def asset_id @asset_id end |
#display_name ⇒ Object (readonly)
Returns the value of attribute display_name.
6 7 8 |
# File 'lib/coinbase/asset.rb', line 6 def display_name @display_name end |
#network_id ⇒ Object (readonly)
Returns the value of attribute network_id.
6 7 8 |
# File 'lib/coinbase/asset.rb', line 6 def network_id @network_id end |