Class: Foobara::AuthHttp::SetUserToAuthenticatedUser

Inherits:
CommandConnectors::Http::SetInputToProcResult show all
Defined in:
foobara-auth-http-0.1.2/src/request_mutators/set_user_to_authenticated_user.rb

Overview

Is this genuinely a generic enough concept to be a class in this project?

Instance Attribute Summary

Attributes inherited from CommandConnectors::Http::SetInputToProcResult

#attribute_name, #input_value_proc

Attributes inherited from Value::Processor

#created_in_namespace, #declaration_data, #parent_declaration_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CommandConnectors::Http::SetInputToProcResult

#applicable?, for, #inputs_type_from, #mutate

Methods inherited from CommandConnectors::RequestMutator

#inputs_type_declaration_from, #inputs_type_from, #mutate

Methods inherited from Value::Mutator

error_classes, foobara_manifest, #mutate, #process_value

Methods inherited from Value::Processor

#always_applicable?, #applicable?, #attribute_name, #build_error, default_declaration_data, #dup_processor, error_class, #error_class, error_classes, #error_classes, #error_context, #error_message, #error_path, foobara_manifest, #foobara_manifest, #inspect, instance, #method_missing, #name, new_with_agnostic_args, #possible_errors, #priority, #process_outcome, #process_outcome!, #process_value, #process_value!, processor_name, #requires_declaration_data?, requires_parent_declaration_data?, #requires_parent_declaration_data?, #respond_to_missing?, #runner, symbol, #symbol

Methods included from IsManifestable

#foobara_domain, #foobara_manifest, #foobara_organization, #scoped_clear_caches

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Constructor Details

#initializeSetUserToAuthenticatedUser

Returns a new instance of SetUserToAuthenticatedUser.



12
13
14
15
16
17
# File 'src/request_mutators/set_user_to_authenticated_user.rb', line 12

def initialize
  self.attribute_name = :user
  self.input_value_proc = proc { authenticated_user }

  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Foobara::Value::Processor

Class Method Details

.requires_declaration_data?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'src/request_mutators/set_user_to_authenticated_user.rb', line 7

def requires_declaration_data?
  false
end