Class: KeycloakAdmin::ImpersonationRedirectionRepresentation
- Inherits:
-
Representation
- Object
- Representation
- KeycloakAdmin::ImpersonationRedirectionRepresentation
- Defined in:
- lib/keycloak-admin/representation/impersonation_redirection_representation.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#http_method ⇒ Object
readonly
Returns the value of attribute http_method.
-
#impersonation_url ⇒ Object
readonly
Returns the value of attribute impersonation_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_method, body, impersonation_url, headers) ⇒ ImpersonationRedirectionRepresentation
constructor
A new instance of ImpersonationRedirectionRepresentation.
Methods inherited from Representation
Methods included from CamelJson
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
#body ⇒ Object (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 |
#headers ⇒ Object (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_method ⇒ Object (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_url ⇒ Object (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 |