Module: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Concern Private
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result/entities/result/concern.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #to_h ⇒ Hash{Symbol => Object} private
-
#to_s(format: :inspect) ⇒ String
Returns string representation of result.
Methods included from Core::Entities::Config::Entities::Concerns::Usual
Instance Method Details
#to_h ⇒ Hash{Symbol => Object}
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.
25 26 27 28 29 30 31 32 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/concern.rb', line 25 def to_h { status: status.to_sym, data: unsafe_data.to_h, message: .to_s, code: unsafe_code.to_sym } end |
#to_s(format: :inspect) ⇒ String
Note:
Intended to be used for debugging purposes.
Returns string representation of result.
67 68 69 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/concern.rb', line 67 def to_s(format: :inspect) (format == :inspect) ? inspect : super() end |