Exception: Altmetric::APIException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Altmetric::APIException
- Defined in:
- lib/altmetric.rb
Direct Known Subclasses
RateLimitedException, UnauthorizedException, UnknownArticleException
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, query, response) ⇒ APIException
constructor
A new instance of APIException.
Constructor Details
#initialize(url, query, response) ⇒ APIException
Returns a new instance of APIException.
10 11 12 13 14 15 |
# File 'lib/altmetric.rb', line 10 def initialize(url, query, response) super(response.content) @url = url @query = query @response = response end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
9 10 11 |
# File 'lib/altmetric.rb', line 9 def query @query end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/altmetric.rb', line 9 def response @response end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
9 10 11 |
# File 'lib/altmetric.rb', line 9 def url @url end |