Exception: Percy::Client::HttpError
- Defined in:
- lib/percy/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(status, method, url, body, *args) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status, method, url, body, *args) ⇒ HttpError
Returns a new instance of HttpError.
26 27 28 29 30 31 32 |
# File 'lib/percy/client.rb', line 26 def initialize(status, method, url, body, *args) @status = status @method = method @url = url @body = body super(*args) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
24 25 26 |
# File 'lib/percy/client.rb', line 24 def body @body end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
22 23 24 |
# File 'lib/percy/client.rb', line 22 def method @method end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
21 22 23 |
# File 'lib/percy/client.rb', line 21 def status @status end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
23 24 25 |
# File 'lib/percy/client.rb', line 23 def url @url end |