Exception: Typekit::Client::APIError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Typekit::Client::APIError
- Defined in:
- lib/typekit/client.rb
Overview
TODO:
Put this somewhere better than Typekit::Client
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ APIError
constructor
A new instance of APIError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ APIError
Returns a new instance of APIError.
119 120 121 |
# File 'lib/typekit/client.rb', line 119 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
117 118 119 |
# File 'lib/typekit/client.rb', line 117 def response @response end |
Instance Method Details
#to_s ⇒ Object
123 124 125 |
# File 'lib/typekit/client.rb', line 123 def to_s @response['errors'].first if @response['errors'].any? end |