Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedParts
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedParts
- Includes:
- Support::Delegate
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb
Instance Attribute Summary collapse
- #printer ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ String private
- #expected_code_part ⇒ String private
- #expected_data_part ⇒ String private
- #expected_message_part ⇒ String private
- #expected_service_part ⇒ String private
- #expected_status_part ⇒ String private
- #expected_step_part ⇒ String private
- #initialize(printer:) ⇒ void constructor private
- #result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result private
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.
79 80 81 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 79 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.
22 23 24 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 22 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.
92 93 94 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 92 def call parts.reject(&:empty?).join("\n") end |
#expected_code_part ⇒ 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.
57 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 57 delegate :expected_code_part, to: :printer |
#expected_data_part ⇒ 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.
43 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 43 delegate :expected_data_part, to: :printer |
#expected_message_part ⇒ 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.
50 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 50 delegate :expected_message_part, to: :printer |
#expected_service_part ⇒ 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.
64 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 64 delegate :expected_service_part, to: :printer |
#expected_status_part ⇒ 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.
36 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 36 delegate :expected_status_part, to: :printer |
#expected_step_part ⇒ 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.
71 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 71 delegate :expected_step_part, 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.
29 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb', line 29 delegate :result, to: :printer |