Exception: GDataPlus::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- GDataPlus::Exception
- Defined in:
- lib/gdata_plus/exception.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(response) ⇒ Exception
Returns a new instance of Exception.
5 6 7 8 9 10 11 12 13 |
# File 'lib/gdata_plus/exception.rb', line 5 def initialize(response) @response = response if @response.respond_to? :body super(@response.body) else super("no response provided") end end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/gdata_plus/exception.rb', line 3 def response @response end |