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)


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

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)


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

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)


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

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)


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

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)


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

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


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

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


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

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)


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

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)


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

def message=(other_message)
  hash[:message] = other_message
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.



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

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:



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

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


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

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


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

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:



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

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:



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

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


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

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