Class: CASServer::Models::ServiceTicket

Inherits:
Ticket
  • Object
show all
Includes:
Consumable
Defined in:
lib/casserver/models.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)


65
66
67
68
# File 'lib/casserver/models.rb', line 65

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