Class: Cassette::Http::TicketResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/cassette/http/ticket_response.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ TicketResponse

Returns a new instance of TicketResponse.



4
5
6
# File 'lib/cassette/http/ticket_response.rb', line 4

def initialize(response)
  @content = ParsedResponse.new(response)
end

Instance Method Details

#authoritiesObject



22
23
24
# File 'lib/cassette/http/ticket_response.rb', line 22

def authorities
  fetch_val(attributes, 'authorities', '__content__')
end

#loginObject



8
9
10
11
12
13
14
15
16
# File 'lib/cassette/http/ticket_response.rb', line 8

def 
  fetch_val(
    content,
    'serviceResponse',
    'authenticationSuccess',
    'user',
    '__content__'
  )
end

#nameObject



18
19
20
# File 'lib/cassette/http/ticket_response.rb', line 18

def name
  fetch_val(attributes, 'cn', '__content__')
end