Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Error::Commands::GenerateGotJsendAttributesPart
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Error::Commands::GenerateGotJsendAttributesPart
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb
Instance Attribute Summary collapse
- #printer ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ String private
- #chain ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain private
- #initialize(printer:) ⇒ void constructor private
- #result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result private
Methods included from Support::DependencyContainer::Import
Methods included from Support::Delegate::ClassMethodsForForwardable
Methods inherited from Support::Command
Constructor Details
#initialize(printer:) ⇒ 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.
57 58 59 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb', line 57 def initialize(printer:) @printer = printer end |
Instance Attribute Details
#printer ⇒ Object (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.
28 29 30 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb', line 28 def printer @printer end |
Instance Method Details
#call ⇒ String
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.
66 67 68 69 70 71 72 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb', line 66 def call return "" unless result return status_part if [chain.used_data?, chain., chain.used_code?].none? [status_part, data_part, , code_part].reject(&:empty?).join("\n") end |
#chain ⇒ ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain
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.
35 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb', line 35 delegate :chain, to: :printer |
#result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
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.
42 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb', line 42 delegate :result, to: :printer |