Exception: Embedly::BadResponseException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Embedly::BadResponseException
- Defined in:
- lib/embedly/exceptions.rb
Instance Attribute Summary (collapse)
-
- (Object) path
Returns the value of attribute path.
-
- (Object) response
Returns the value of attribute response.
Instance Method Summary (collapse)
-
- (BadResponseException) initialize(response, path = nil)
constructor
A new instance of BadResponseException.
- - (Object) inspect
- - (Object) message
- - (Object) to_s
Constructor Details
- (BadResponseException) initialize(response, path = nil)
A new instance of BadResponseException
4 5 6 7 |
# File 'lib/embedly/exceptions.rb', line 4 def initialize(response, path = nil) @response ||= response @path ||= path end |
Instance Attribute Details
- (Object) path
Returns the value of attribute path
2 3 4 |
# File 'lib/embedly/exceptions.rb', line 2 def path @path end |
- (Object) response
Returns the value of attribute response
2 3 4 |
# File 'lib/embedly/exceptions.rb', line 2 def response @response end |
Instance Method Details
- (Object) inspect
13 14 15 |
# File 'lib/embedly/exceptions.rb', line 13 def inspect self. end |
- (Object) message
9 10 11 |
# File 'lib/embedly/exceptions.rb', line 9 def "Bad Response : #{@response.inspect} for path: #{@path.inspect}" end |
- (Object) to_s
17 18 19 |
# File 'lib/embedly/exceptions.rb', line 17 def to_s self. end |