Exception: Twitter::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/twitter/common.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, res) ⇒ ResponseError

Returns a new instance of ResponseError.



25
26
27
28
# File 'lib/twitter/common.rb', line 25

def initialize(msg, res)
  super(msg)
  @response = res
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



24
25
26
# File 'lib/twitter/common.rb', line 24

def response
  @response
end