Module: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::HasAwesomePrintInspect::Concern

Includes:
ConvenientService::Support::Concern
Defined in:
lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/concern.rb

Instance Method Summary collapse

Instance Method Details

#inspectString

Returns:

  • (String)


18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/concern.rb', line 18

def inspect
   = {
    ConvenientService: {
      entity: "Result",
      service: service.inspect_values[:name],
      status: status.to_sym
    }
  }

  [:ConvenientService][:data_keys] = unsafe_data.keys if unsafe_data.keys.any?
  [:ConvenientService][:message] = unsafe_message.to_s unless unsafe_message.empty?

  .ai
end