Class: BinanceClient::Network

Inherits:
BaseModel show all
Defined in:
lib/binance_client/models/network.rb

Constant Summary collapse

PLAIN_METHODS =
%i[
  address_regex
  coin
  deposit_desc
  memo_regex
  min_confirm
  name
  network
  special_tips
  un_lock_confirm
  withdraw_desc
].freeze
DECIMAL_METHODS =
%i[
  withdraw_fee
  withdraw_integer_multiple
  withdraw_max
  withdraw_min
].freeze
BOOL_MAP =
{
  deposit_enable: :deposit_enabled?,
  is_default: :default?,
  reset_address_status: :reset_address_status?,
  withdraw_enable: :withdraw_enabled?,
  same_address: :same_address?
}.freeze
METHODS =
(PLAIN_METHODS + DECIMAL_METHODS + BOOL_MAP.keys).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ Network

Returns a new instance of Network.



37
38
39
40
41
# File 'lib/binance_client/models/network.rb', line 37

def initialize(**kwargs)
  kwargs.each do |key, value|
    self.send("#{key}=", value)
  end
end

Instance Attribute Details

#raw_hashObject

Returns the value of attribute raw_hash.



34
35
36
# File 'lib/binance_client/models/network.rb', line 34

def raw_hash
  @raw_hash
end