Class: CASClient::ServiceTicket
- Inherits:
-
Object
- Object
- CASClient::ServiceTicket
- Defined in:
- lib/casclient/tickets.rb
Overview
Represents a CAS service ticket.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) extra_attributes
Returns the value of attribute extra_attributes.
-
- (Object) failure_code
Returns the value of attribute failure_code.
-
- (Object) failure_message
Returns the value of attribute failure_message.
-
- (Object) pgt_iou
Returns the value of attribute pgt_iou.
-
- (Object) renew
readonly
Returns the value of attribute renew.
-
- (Object) service
readonly
Returns the value of attribute service.
-
- (Object) success
Returns the value of attribute success.
-
- (Object) ticket
readonly
Returns the value of attribute ticket.
-
- (Object) user
Returns the value of attribute user.
Instance Method Summary (collapse)
- - (Boolean) has_been_validated?
-
- (ServiceTicket) initialize(ticket, service, renew = false)
constructor
A new instance of ServiceTicket.
- - (Boolean) is_valid?
Constructor Details
- (ServiceTicket) initialize(ticket, service, renew = false)
A new instance of ServiceTicket
7 8 9 10 11 |
# File 'lib/casclient/tickets.rb', line 7 def initialize(ticket, service, renew = false) @ticket = ticket @service = service @renew = renew end |
Instance Attribute Details
- (Object) extra_attributes
Returns the value of attribute extra_attributes
5 6 7 |
# File 'lib/casclient/tickets.rb', line 5 def extra_attributes @extra_attributes end |
- (Object) failure_code
Returns the value of attribute failure_code
5 6 7 |
# File 'lib/casclient/tickets.rb', line 5 def failure_code @failure_code end |
- (Object) failure_message
Returns the value of attribute failure_message
5 6 7 |
# File 'lib/casclient/tickets.rb', line 5 def @failure_message end |
- (Object) pgt_iou
Returns the value of attribute pgt_iou
5 6 7 |
# File 'lib/casclient/tickets.rb', line 5 def pgt_iou @pgt_iou end |
- (Object) renew (readonly)
Returns the value of attribute renew
4 5 6 |
# File 'lib/casclient/tickets.rb', line 4 def renew @renew end |
- (Object) service (readonly)
Returns the value of attribute service
4 5 6 |
# File 'lib/casclient/tickets.rb', line 4 def service @service end |
- (Object) success
Returns the value of attribute success
5 6 7 |
# File 'lib/casclient/tickets.rb', line 5 def success @success end |
- (Object) ticket (readonly)
Returns the value of attribute ticket
4 5 6 |
# File 'lib/casclient/tickets.rb', line 4 def ticket @ticket end |
- (Object) user
Returns the value of attribute user
5 6 7 |
# File 'lib/casclient/tickets.rb', line 5 def user @user end |
Instance Method Details
- (Boolean) has_been_validated?
17 18 19 |
# File 'lib/casclient/tickets.rb', line 17 def has_been_validated? not user.nil? end |
- (Boolean) is_valid?
13 14 15 |
# File 'lib/casclient/tickets.rb', line 13 def is_valid? success end |