Class: Certmeister::Policy::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/certmeister/policy/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(authenticated, error) ⇒ Response

Returns a new instance of Response.



7
8
9
10
# File 'lib/certmeister/policy/response.rb', line 7

def initialize(authenticated, error)
  @authenticated = authenticated
  @error = error
end

Instance Method Details

#authenticated?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/certmeister/policy/response.rb', line 12

def authenticated?
  !@error
end

#errorObject



16
17
18
# File 'lib/certmeister/policy/response.rb', line 16

def error
  @error
end