class CASClient::ServiceTicket

Represents a CAS service ticket.

Attributes

extra_attributes[RW]
failure_code[RW]
failure_message[RW]
pgt_iou[RW]
renew[R]
service[R]
success[RW]
ticket[R]
user[RW]

Public Class Methods

new(ticket, service, renew = false) click to toggle source
# File lib/casclient/tickets.rb, line 7
def initialize(ticket, service, renew = false)
  @ticket = ticket
  @service = service
  @renew = renew
end

Public Instance Methods

has_been_validated?() click to toggle source
# File lib/casclient/tickets.rb, line 17
def has_been_validated?
  not user.nil?
end
is_valid?() click to toggle source
# File lib/casclient/tickets.rb, line 13
def is_valid?
  success
end