Class: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::HasAmazingPrintInspect::Commands::GenerateInspectOutput Private

Inherits:
ConvenientService::Support::Command
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/commands/generate_inspect_output.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ConvenientService::Support::Command

[], call

Constructor Details

#initialize(result:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/commands/generate_inspect_output.rb', line 28

def initialize(result:)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



22
23
24
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/commands/generate_inspect_output.rb', line 22

def result
  @result
end

Instance Method Details

#callString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)

Since:

  • 1.0.0



35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/commands/generate_inspect_output.rb', line 35

def call
   = {}

  [:entity] = "Result"
  [:service] = service
  [:original_service] = original_service if include_original_service?
  [:status] = status
  [:data_keys] = data_keys if include_data_keys?
  [:message] = message if include_message?
  [:backtrace] = backtrace if include_backtrace?

  {ConvenientService: }.ai
end