Exception: WebTagger::WebTaggerError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/webtagger.rb

Overview

A generic exception to handle api call errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resp) ⇒ WebTaggerError

Returns a new instance of WebTaggerError.



17
18
19
# File 'lib/webtagger.rb', line 17

def initialize(resp)
    @response = resp
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



16
17
18
# File 'lib/webtagger.rb', line 16

def response
  @response
end