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.



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

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.



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

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)


188
189
190
191
192
193
194
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb', line 188

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.



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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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)


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

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.



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

delegate :result, to: :matcher