Exception: Ondotori::WebAPI::Api::Errors::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/ondotori/webapi/api/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

Constructor Details

#initialize(message, code, ratelimit) ⇒ ResponseError

Returns a new instance of ResponseError.



19
20
21
22
# File 'lib/ondotori/webapi/api/errors.rb', line 19

def initialize(message, code, ratelimit)
  super message, code
  @ratelimit = ratelimit
end

Instance Attribute Details

#ratelimitObject (readonly)

Returns the value of attribute ratelimit.



17
18
19
# File 'lib/ondotori/webapi/api/errors.rb', line 17

def ratelimit
  @ratelimit
end