Class: KeycloakOauth::PutExecuteActionsEmailService

Inherits:
AuthorizableService show all
Defined in:
app/services/keycloak_oauth/put_execute_actions_email_service.rb

Constant Summary collapse

SUPPORTED_QUERY_PARAMS =
%i(client_id lifespan redirect_uri)

Constants inherited from AuthorizableService

AuthorizableService::AUTHORIZATION_HEADER, AuthorizableService::CONTENT_TYPE_JSON, AuthorizableService::CONTENT_TYPE_X_WWW_FORM_URLENCODED, AuthorizableService::HTTP_SUCCESS_CODES

Instance Attribute Summary collapse

Attributes inherited from AuthorizableService

#http_response, #parsed_response_body

Instance Method Summary collapse

Methods inherited from AuthorizableService

#perform, uri_with_supported_query_params

Constructor Details

#initialize(connection: KeycloakOauth.connection, access_token:, refresh_token:, user_id:, actions:, options: {}) ⇒ PutExecuteActionsEmailService

Returns a new instance of PutExecuteActionsEmailService.



9
10
11
12
13
14
15
16
# File 'app/services/keycloak_oauth/put_execute_actions_email_service.rb', line 9

def initialize(connection: KeycloakOauth.connection, access_token:, refresh_token:, user_id:, actions:, options: {})
  @connection = connection
  @access_token = access_token
  @refresh_token = refresh_token
  @user_id = user_id
  @actions = actions
  @options = options
end

Instance Attribute Details

#actionsObject (readonly)

Returns the value of attribute actions.



7
8
9
# File 'app/services/keycloak_oauth/put_execute_actions_email_service.rb', line 7

def actions
  @actions
end

#connectionObject (readonly)

Returns the value of attribute connection.



7
8
9
# File 'app/services/keycloak_oauth/put_execute_actions_email_service.rb', line 7

def connection
  @connection
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'app/services/keycloak_oauth/put_execute_actions_email_service.rb', line 7

def options
  @options
end

#user_idObject (readonly)

Returns the value of attribute user_id.



7
8
9
# File 'app/services/keycloak_oauth/put_execute_actions_email_service.rb', line 7

def user_id
  @user_id
end

Instance Method Details

#send_requestObject



18
19
20
# File 'app/services/keycloak_oauth/put_execute_actions_email_service.rb', line 18

def send_request
  put_execute_actions_email
end