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.



21
22
23
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 21

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)


265
266
267
268
269
270
271
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 265

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

  return false if hash != other.hash

  true
end

#codeString, ...

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


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

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)


215
216
217
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 215

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)


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

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)


185
186
187
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 185

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


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

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


195
196
197
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 195

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)


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

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)


205
206
207
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 205

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.

Returns:



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

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:



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

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.

Returns:



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

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:



225
226
227
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 225

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


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

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


175
176
177
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 175

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

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

Returns:



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

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:



245
246
247
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 245

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

#step_indexInteger?

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:

  • (Integer, nil)


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

def step_index
  hash[:step_index]
end

#step_index=(other_step_index) ⇒ Integer

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_step_index (Integer)

Returns:

  • (Integer)


255
256
257
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 255

def step_index=(other_step_index)
  hash[:step_index] = other_step_index
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)


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

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)


30
31
32
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 30

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)


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

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)


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

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)


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

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)


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

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

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


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

def used_step_index?
  hash.key?(:step_index)
end