Class: BinanceClient::DepositAddress
- Inherits:
-
Object
- Object
- BinanceClient::DepositAddress
- Defined in:
- lib/binance_client/models/deposit_address.rb
Constant Summary collapse
- ATTRS =
[ :address, :coin, :tag, :url, ]
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ DepositAddress
constructor
A new instance of DepositAddress.
Constructor Details
#initialize(**kwargs) ⇒ DepositAddress
Returns a new instance of DepositAddress.
21 22 23 24 25 |
# File 'lib/binance_client/models/deposit_address.rb', line 21 def initialize(**kwargs) kwargs.each do |attr, value| self.send("#{attr}=", value) end end |
Class Method Details
.new_from_raw(raw_hash) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/binance_client/models/deposit_address.rb', line 4 def self.new_from_raw(raw_hash) args = raw_hash.each_with_object({}) do |(k, v), h| h[k.underscore] = v end self.new(**args) end |