Class: Bibox::Models::UserAssets
- Defined in:
- lib/bibox/models/user_assets.rb
Constant Summary collapse
- MAPPING =
{ total_btc: :float, total_cny: :float, total_usd: :float, }
Instance Attribute Summary collapse
-
#assets ⇒ Object
Returns the value of attribute assets.
Instance Method Summary collapse
-
#initialize(hash) ⇒ UserAssets
constructor
A new instance of UserAssets.
- #process(assets) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(hash) ⇒ UserAssets
Returns a new instance of UserAssets.
12 13 14 15 |
# File 'lib/bibox/models/user_assets.rb', line 12 def initialize(hash) super(hash) process(hash.fetch("assets_list", [])) end |
Instance Attribute Details
#assets ⇒ Object
Returns the value of attribute assets.
4 5 6 |
# File 'lib/bibox/models/user_assets.rb', line 4 def assets @assets end |