Exception: Blitz::Curl::Error::Authorize
- Inherits:
-
Blitz::Curl::Error
- Object
- StandardError
- Blitz::Curl::Error
- Blitz::Curl::Error::Authorize
- Defined in:
- lib/blitz/curl/error.rb
Overview
This exception is raised when you haven’t authorized a rush against your app
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
The set of checks performed if the app was reachable.
-
#host ⇒ Object
readonly
The host in the URL.
-
#port ⇒ Object
readonly
The port (if specified) in the URL.
-
#scheme ⇒ Object
readonly
The scheme used in the rush (http or httpss).
-
#uuid ⇒ Object
readonly
The unique ID to use a URL path in your app for authorization to succeed.
Instance Method Summary collapse
-
#initialize(json) ⇒ Authorize
constructor
A new instance of Authorize.
Constructor Details
#initialize(json) ⇒ Authorize
Returns a new instance of Authorize.
25 26 27 28 29 30 31 32 |
# File 'lib/blitz/curl/error.rb', line 25 def initialize json @scheme = json['scheme'] @host = json['host'] @port = json['port'] @uuid = json['uuid'] @checks = json['checks'] super end |
Instance Attribute Details
#checks ⇒ Object (readonly)
The set of checks performed if the app was reachable
23 24 25 |
# File 'lib/blitz/curl/error.rb', line 23 def checks @checks end |
#host ⇒ Object (readonly)
The host in the URL
14 15 16 |
# File 'lib/blitz/curl/error.rb', line 14 def host @host end |
#port ⇒ Object (readonly)
The port (if specified) in the URL
17 18 19 |
# File 'lib/blitz/curl/error.rb', line 17 def port @port end |
#scheme ⇒ Object (readonly)
The scheme used in the rush (http or httpss)
11 12 13 |
# File 'lib/blitz/curl/error.rb', line 11 def scheme @scheme end |
#uuid ⇒ Object (readonly)
The unique ID to use a URL path in your app for authorization to succeed
20 21 22 |
# File 'lib/blitz/curl/error.rb', line 20 def uuid @uuid end |