Class: Foobara::AuthHttp::MoveAccessTokenToHeader

Inherits:
CommandConnectors::Http::MoveAttributeToHeader show all
Defined in:
foobara-auth-http-0.0.7/src/foobara/auth_http/move_access_token_to_header.rb

Instance Attribute Summary

Attributes inherited from CommandConnectors::Http::MoveAttributeToHeader

#attribute_name, #header_name

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::MoveAttributeToHeader

#applicable?, for, #mutate, #result_type_from

Methods inherited from CommandConnectors::ResponseMutator

#mutate, #result_type_declaration_from, #result_type_from

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_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_parent_declaration_data?, #respond_to_missing?, #runner, 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

#initialize(attribute_name = :access_token, header_name = "X-Access-Token") ⇒ MoveAccessTokenToHeader

Returns a new instance of MoveAccessTokenToHeader.



11
12
13
14
15
16
# File 'foobara-auth-http-0.0.7/src/foobara/auth_http/move_access_token_to_header.rb', line 11

def initialize(attribute_name = :access_token, header_name = "X-Access-Token")
  super()

  self.attribute_name = attribute_name.to_sym
  self.header_name = header_name.to_s
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)


6
7
8
# File 'foobara-auth-http-0.0.7/src/foobara/auth_http/move_access_token_to_header.rb', line 6

def requires_declaration_data?
  false
end