class Embedly::BadResponseException

Attributes

path[RW]
response[RW]

Public Class Methods

new(response, path = nil) click to toggle source
# File lib/embedly/exceptions.rb, line 4
def initialize(response, path = nil)
  @response ||= response
  @path ||= path
end

Public Instance Methods

inspect() click to toggle source
# File lib/embedly/exceptions.rb, line 13
def inspect
  self.message
end
message() click to toggle source
# File lib/embedly/exceptions.rb, line 9
def message
  "Bad Response : #{@response.inspect} for path: #{@path.inspect}"
end
to_s() click to toggle source
# File lib/embedly/exceptions.rb, line 17
def to_s
  self.message
end