Class: Foobara::CommandConnectors::Http::Commands::Describe

Inherits:
Foobara::CommandConnector::Commands::Describe show all
Defined in:
foobara-http-command-connector-0.0.23/src/http/commands/describe.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary

Attributes inherited from Foobara::CommandConnector::Commands::Describe

#manifest

Attributes included from Foobara::CommandPatternImplementation::Concerns::Subcommands

#is_subcommand

Attributes included from Foobara::CommandPatternImplementation::Concerns::Runtime

#exception, #outcome

Attributes included from Foobara::CommandPatternImplementation::Concerns::Errors

#error_collection

Attributes included from Foobara::CommandPatternImplementation::Concerns::Inputs

#inputs, #raw_inputs

Instance Method Summary collapse

Methods inherited from Foobara::CommandConnector::Commands::Describe

#execute

Methods inherited from Foobara::Command

install!, reset_all

Methods included from Foobara::Concern

foobara_class_methods_module_for, foobara_concern?, included

Methods included from Foobara::CommandPatternImplementation::Concerns::Reflection

#initialize

Methods included from Foobara::CommandPatternImplementation::Concerns::DomainMappers

#domain_map, #domain_map!, #run_mapped_subcommand!

Methods included from Foobara::CommandPatternImplementation::Concerns::Subcommands

#run_subcommand!, #subcommand?

Methods included from Foobara::CommandPatternImplementation::Concerns::Entities

#load_entities, #load_records

Methods included from Foobara::CommandPatternImplementation::Concerns::Transactions

#auto_detect_current_transactions, #commit_transaction, #open_transaction, #opened_transactions, #relevant_entity_classes, #rollback_transaction, #transactions

Methods included from Foobara::CommandPatternImplementation::Concerns::StateMachine

#state_machine

Methods included from Foobara::CommandPatternImplementation::Concerns::Runtime

#execute, #halt!, #run, #run!, #run_execute, #succeed, #success?, #validate, #validate_records

Methods included from Foobara::CommandPatternImplementation::Concerns::Errors

#initialize

Methods included from Foobara::CommandPatternImplementation::Concerns::Inputs

#cast_and_validate_inputs, #initialize, #method_missing, #respond_to_missing?, #respond_to_missing_for_inputs?

Methods included from TruncatedInspect

#inspect, truncating

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Foobara::CommandPatternImplementation::Concerns::Inputs

Instance Method Details

#build_manifestObject



20
21
22
23
24
25
26
27
28
# File 'foobara-http-command-connector-0.0.23/src/http/commands/describe.rb', line 20

def build_manifest
  if detached_context?
    in_detached_context do
      super
    end
  else
    super
  end
end

#detached_context?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'foobara-http-command-connector-0.0.23/src/http/commands/describe.rb', line 30

def detached_context?
  detached
end

#in_detached_contextObject



16
17
18
# File 'foobara-http-command-connector-0.0.23/src/http/commands/describe.rb', line 16

def in_detached_context(&)
  TypeDeclarations.with_manifest_context(detached: true, &)
end

#stamp_request_metadataObject



12
13
14
# File 'foobara-http-command-connector-0.0.23/src/http/commands/describe.rb', line 12

def 
  manifest[:metadata] = super.merge(url: request.url)
end