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.



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

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.



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

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



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

def headers
  @headers
end

#http_methodObject (readonly)

Returns the value of attribute http_method.



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

def http_method
  @http_method
end

#impersonation_urlObject (readonly)

Returns the value of attribute impersonation_url.



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

def impersonation_url
  @impersonation_url
end

Class Method Details

.from_url(url, headers) ⇒ Object



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

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