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

Inherits:
Object
  • Object
show all
Defined in:
lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb

Instance Method Summary collapse

Constructor Details

#initializevoid

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.



16
17
18
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 16

def initialize
  @hash = {}
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)


232
233
234
235
236
237
238
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 232

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

  return false if hash != other.hash

  true
end

#codeString, Symbol

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, Symbol)


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

def code
  hash[:code]
end

#code=(other_code) ⇒ Symbol

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_code (Symbol)

Returns:

  • (Symbol)


192
193
194
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 192

def code=(other_code)
  hash[:code] = other_code
end

#comparison_methodSymbol

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:

  • (Symbol, Symbol)


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

def comparison_method
  hash[:comparison_method] || Constants::DEFAULT_COMPARISON_METHOD
end

#comparison_method=(other_comparison_method) ⇒ Symbol

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_comparison_method (Symbol, Symbol)

Returns:

  • (Symbol, Symbol)


162
163
164
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 162

def comparison_method=(other_comparison_method)
  hash[:comparison_method] = other_comparison_method
end

#dataHash{Symbol => Object}

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:

  • (Hash{Symbol => Object})


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

def data
  hash[:data] || {}
end

#data=(other_data) ⇒ Hash{Symbol => Object}

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_data (Hash{Symbol => Object})

Returns:

  • (Hash{Symbol => Object})


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

def data=(other_data)
  hash[:data] = other_data
end

#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)


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

def message
  hash[:message] || ""
end

#message=(other_message) ⇒ 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.

Parameters:

  • other_message (String)

Returns:

  • (String)


182
183
184
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 182

def message=(other_message)
  hash[:message] = other_message
end

#original_serviceConvenientService::Service

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.



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

def original_service
  hash[:original_service]
end

#original_service=(other_service) ⇒ ConvenientService::Service

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:

Returns:



212
213
214
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 212

def original_service=(other_service)
  hash[:original_service] = other_service
end

#serviceConvenientService::Service

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.



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

def service
  hash[:service]
end

#service=(other_service) ⇒ ConvenientService::Service

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:

Returns:



202
203
204
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 202

def service=(other_service)
  hash[:service] = other_service
end

#statusesArray<Symbol>

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:

  • (Array<Symbol>)


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

def statuses
  hash[:statuses] || []
end

#statuses=(other_statuses) ⇒ Array<Symbol>

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_statuses (Array<Symbol>)

Returns:

  • (Array<Symbol>)


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

def statuses=(other_statuses)
  hash[:statuses] = other_statuses
end

#stepConvenientService::Service, Symbol

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:



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

def step
  hash[:step]
end

#step=(other_step) ⇒ ConvenientService::Service, Symbol

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:

Returns:



222
223
224
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 222

def step=(other_step)
  hash[:step] = other_step
end

#used_code?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.

Returns:

  • (Boolean)


43
44
45
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 43

def used_code?
  hash.key?(:code)
end

#used_data?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.

Returns:

  • (Boolean)


25
26
27
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 25

def used_data?
  hash.key?(:data)
end

#used_message?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.

Returns:

  • (Boolean)


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

def used_message?
  hash.key?(:message)
end

#used_original_service?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.

Returns:

  • (Boolean)


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

def used_original_service?
  hash.key?(:original_service)
end

#used_service?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.

Returns:

  • (Boolean)


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

def used_service?
  hash.key?(:service)
end

#used_step?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.

Returns:

  • (Boolean)


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

def used_step?
  hash.key?(:step)
end