Sha256: 84ce0f23013fe17f5169ec7c43d5043c782ec9b1f497364fadc67ead9855b278

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

class GoogleR
  class Error < Exception
    attr_reader :status, :response

    def initialize(status, response)
      @status, @response = status, response
    end

    def message
      [
        "Response code: #{@status}",
        "Response body: #{@response}",
      ].join("\n")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_r-0.2.0 lib/google_r/exceptions.rb