class PlanRateLimitError

Attributes

seconds_to_wait[RW]

Public Class Methods

new(raw_response) click to toggle source
Calls superclass method MonkeylearnResponseError::new
# File lib/monkeylearn/exceptions.rb, line 67
def initialize(raw_response)
  body = JSON.parse(raw_response.body)
  @seconds_to_wait =  body['seconds_to_wait'].to_i

  super raw_response
end