Class: CASServer::Model::ServiceTicket

Inherits:
Ticket
  • Object
show all
Includes:
Consumable
Defined in:
lib/casserver/model.rb

Direct Known Subclasses

ProxyTicket

Instance Method Summary collapse

Methods included from Consumable

#consume!, included

Methods inherited from Ticket

cleanup, #to_s

Instance Method Details

#matches_service?(service) ⇒ Boolean

Returns:

  • (Boolean)


70
71
72
73
# File 'lib/casserver/model.rb', line 70

def matches_service?(service)
  CASServer::CAS.clean_service_url(self.service) ==
    CASServer::CAS.clean_service_url(service)
end