Class: BinanceClient::RateLimit

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

Constant Summary collapse

INTERVALS =
%w[SECOND MINUTE DAY].freeze
METHODS =
%i[
  rate_limit_type
  interval
  interval_num
  limit
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ RateLimit

Returns a new instance of RateLimit.



15
16
17
18
19
# File 'lib/binance_client/models/rate_limit.rb', line 15

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.



12
13
14
# File 'lib/binance_client/models/rate_limit.rb', line 12

def raw_hash
  @raw_hash
end