Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Success::Commands::GenerateGotJsendAttributesPart
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Success::Commands::GenerateGotJsendAttributesPart
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/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.
52 53 54 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb', line 52 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.
23 24 25 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb', line 23 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.
61 62 63 64 65 66 67 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb', line 61 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.
30 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb', line 30 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.
37 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb', line 37 delegate :result, to: :printer |