Class: KeycloakAdmin::ImpersonationRedirectionRepresentation

Inherits:
Representation
  • Object
show all
Defined in:
lib/keycloak-admin/representation/impersonation_redirection_representation.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Representation

#as_json, from_json, #to_json

Methods included from CamelJson

#camelize

Constructor Details

#initialize(http_method, body, impersonation_url, headers) ⇒ ImpersonationRedirectionRepresentation

Returns a new instance of ImpersonationRedirectionRepresentation.



6
7
8
9
10
11
# File 'lib/keycloak-admin/representation/impersonation_redirection_representation.rb', line 6

def initialize(http_method, body, impersonation_url, headers)
  @http_method       = http_method
  @body              = body
  @impersonation_url = impersonation_url
  @headers           = headers
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/keycloak-admin/representation/impersonation_redirection_representation.rb', line 4

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/keycloak-admin/representation/impersonation_redirection_representation.rb', line 4

def headers
  @headers
end

#http_methodObject (readonly)

Returns the value of attribute http_method.



4
5
6
# File 'lib/keycloak-admin/representation/impersonation_redirection_representation.rb', line 4

def http_method
  @http_method
end

#impersonation_urlObject (readonly)

Returns the value of attribute impersonation_url.



4
5
6
# File 'lib/keycloak-admin/representation/impersonation_redirection_representation.rb', line 4

def impersonation_url
  @impersonation_url
end

Class Method Details

.from_url(url, headers) ⇒ Object



13
14
15
# File 'lib/keycloak-admin/representation/impersonation_redirection_representation.rb', line 13

def self.from_url(url, headers)
  new(:post, {}, url, headers)
end