Exception: DPay::RateLimitError
- Defined in:
- lib/dpay/errors.rb,
sig/dpay/errors.rbs
Instance Attribute Summary collapse
-
#limit ⇒ Integer?
readonly
Returns the value of attribute limit.
-
#remaining ⇒ Integer?
readonly
Returns the value of attribute remaining.
-
#retry_after ⇒ Integer?
readonly
Returns the value of attribute retry_after.
Attributes inherited from ApiError
#error_code, #field_errors, #http_status, #raw_body
Instance Method Summary collapse
-
#initialize(message, http_status, retry_after = nil, limit = nil, remaining = nil, raw_body = "") ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, http_status, retry_after = nil, limit = nil, remaining = nil, raw_body = "") ⇒ RateLimitError
Returns a new instance of RateLimitError.
45 46 47 48 49 50 |
# File 'lib/dpay/errors.rb', line 45 def initialize(, http_status, retry_after = nil, limit = nil, remaining = nil, raw_body = "") super(, http_status, nil, {}, raw_body) @retry_after = retry_after @limit = limit @remaining = remaining end |
Instance Attribute Details
#limit ⇒ Integer? (readonly)
Returns the value of attribute limit.
43 44 45 |
# File 'lib/dpay/errors.rb', line 43 def limit @limit end |
#remaining ⇒ Integer? (readonly)
Returns the value of attribute remaining.
43 44 45 |
# File 'lib/dpay/errors.rb', line 43 def remaining @remaining end |
#retry_after ⇒ Integer? (readonly)
Returns the value of attribute retry_after.
43 44 45 |
# File 'lib/dpay/errors.rb', line 43 def retry_after @retry_after end |