Class: TidaSinaWeibo::RestClientException

Inherits:
RestClient::Exception
  • Object
show all
Defined in:
lib/tida_sina_weibo/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



40
41
42
# File 'lib/tida_sina_weibo/exceptions.rb', line 40

def body
  @body
end