Class: TidaSinaWeibo::RestClientException
- Inherits:
-
RestClient::Exception
- Object
- RestClient::Exception
- TidaSinaWeibo::RestClientException
- Defined in:
- lib/tida_sina_weibo/exceptions.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(rest_client_exception) ⇒ RestClientException
constructor
A new instance of RestClientException.
Constructor Details
#initialize(rest_client_exception) ⇒ RestClientException
Returns a new instance of RestClientException.
42 43 44 |
# File 'lib/tida_sina_weibo/exceptions.rb', line 42 def initialize(rest_client_exception) @body = ::JSON.parse rest_client_exception.http_body if rest_client_exception end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
40 41 42 |
# File 'lib/tida_sina_weibo/exceptions.rb', line 40 def body @body end |