Class Eventful::APIError
In: lib/eventful/api.rb
Parent: Error

An error that may also include the YAML response from the server

Methods

new   to_s  

Attributes

response  [R] 

Public Class methods

Creates a new exception.

[Source]

# File lib/eventful/api.rb, line 194
    def initialize(response)
      super
      @response = response
    end

Public Instance methods

The error string returned by the API call.

[Source]

# File lib/eventful/api.rb, line 200
    def to_s
      "#{@response['string']}: #{@response['description']}"
    end

[Validate]