Exception: Blitz::Curl::Error::Authorize

Inherits:
Blitz::Curl::Error show all
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

Instance Method Summary collapse

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

#checksObject (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

#hostObject (readonly)

The host in the URL



14
15
16
# File 'lib/blitz/curl/error.rb', line 14

def host
  @host
end

#portObject (readonly)

The port (if specified) in the URL



17
18
19
# File 'lib/blitz/curl/error.rb', line 17

def port
  @port
end

#schemeObject (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

#uuidObject (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