Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base

Inherits:
Object
  • Object
show all
Includes:
Support::AbstractMethod, Support::Delegate
Defined in:
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_parts.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_service_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_code_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_data_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_step_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_status_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_message_part.rb,
lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_service_part.rb

Direct Known Subclasses

Error, Failure, Null, Success

Defined Under Namespace

Modules: Commands

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::AbstractMethod

abstract_method

Methods included from Support::Delegate::ClassMethodsForForwardable

#delegate

Constructor Details

#initialize(matcher:) ⇒ 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.



56
57
58
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 56

def initialize(matcher:)
  @matcher = matcher
end

Instance Attribute Details

#matcherObject (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.



27
28
29
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 27

def matcher
  @matcher
end

Instance Method Details

#==(other) ⇒ Boolean?

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.

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)


183
184
185
186
187
188
189
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 183

def ==(other)
  return unless other.instance_of?(self.class)

  return false if matcher != other.matcher

  true
end

#chainConvenientService::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.



48
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 48

delegate :chain, to: :matcher

#descriptionString

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.

Returns:

  • (String)


65
66
67
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 65

def description
  expected_parts
end

#expected_code_partString

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.

Returns:

  • (String)


110
111
112
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 110

def expected_code_part
  Commands::GenerateExpectedCodePart[printer: self]
end

#expected_data_partString

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.

Returns:

  • (String)


119
120
121
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 119

def expected_data_part
  Commands::GenerateExpectedDataPart[printer: self]
end

#expected_message_partString

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.

Returns:

  • (String)


128
129
130
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 128

def expected_message_part
  Commands::GenerateExpectedMessagePart[printer: self]
end

#expected_partsString

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.

Returns:

  • (String)


92
93
94
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 92

def expected_parts
  Commands::GenerateExpectedParts[printer: self]
end

#expected_service_partString

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.

Returns:

  • (String)


137
138
139
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 137

def expected_service_part
  Commands::GenerateExpectedServicePart[printer: self]
end

#expected_status_partString

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.

Returns:

  • (String)


146
147
148
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 146

def expected_status_part
  Commands::GenerateExpectedStatusPart[printer: self]
end

#expected_step_partString

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.

Returns:

  • (String)


155
156
157
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 155

def expected_step_part
  Commands::GenerateExpectedStepPart[printer: self]
end

#failure_messageString

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.

Returns:

  • (String)


74
75
76
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 74

def failure_message
  "expected result to be\n#{default_text}"
end

#failure_message_when_negatedString

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.

Returns:

  • (String)


83
84
85
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 83

def failure_message_when_negated
  "expected result NOT to be\n#{default_text}"
end

#got_jsend_attributes_partString

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.

Returns:

  • (String)


34
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 34

abstract_method :got_jsend_attributes_part

#got_partsString

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.

Returns:

  • (String)


101
102
103
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 101

def got_parts
  Commands::GenerateGotParts[printer: self]
end

#got_service_partString

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.

Returns:

  • (String)


173
174
175
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 173

def got_service_part
  Commands::GenerateGotServicePart[printer: self]
end

#got_step_partString

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.

Returns:

  • (String)


164
165
166
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 164

def got_step_part
  Commands::GenerateGotStepPart[printer: self]
end

#resultConvenientService::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.



41
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 41

delegate :result, to: :matcher