Class: Certmeister::Policy::Response
- Inherits:
-
Object
- Object
- Certmeister::Policy::Response
- Defined in:
- lib/certmeister/policy/response.rb
Instance Method Summary collapse
- #authenticated? ⇒ Boolean
- #error ⇒ Object
-
#initialize(authenticated, error) ⇒ Response
constructor
A new instance of Response.
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
12 13 14 |
# File 'lib/certmeister/policy/response.rb', line 12 def authenticated? !@error end |
#error ⇒ Object
16 17 18 |
# File 'lib/certmeister/policy/response.rb', line 16 def error @error end |