Class: Cassette::Http::TicketResponse
- Inherits:
-
Object
- Object
- Cassette::Http::TicketResponse
- Defined in:
- lib/cassette/http/ticket_response.rb
Instance Method Summary collapse
- #authorities ⇒ Object
-
#initialize(response) ⇒ TicketResponse
constructor
A new instance of TicketResponse.
- #login ⇒ Object
- #name ⇒ Object
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
#authorities ⇒ Object
22 23 24 |
# File 'lib/cassette/http/ticket_response.rb', line 22 def fetch_val(attributes, 'authorities', '__content__') end |
#login ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/cassette/http/ticket_response.rb', line 8 def login fetch_val( content, 'serviceResponse', 'authenticationSuccess', 'user', '__content__' ) end |
#name ⇒ Object
18 19 20 |
# File 'lib/cassette/http/ticket_response.rb', line 18 def name fetch_val(attributes, 'cn', '__content__') end |