Class: ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain
- Inherits:
-
Object
- Object
- ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain
- Defined in:
- lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb
Instance Method Summary collapse
- #==(other) ⇒ Boolean? private
- #code ⇒ String, Symbol private
- #code=(other_code) ⇒ Symbol private
- #comparison_method ⇒ Symbol private
- #comparison_method=(other_comparison_method) ⇒ Symbol private
- #data ⇒ Hash{Symbol => Object} private
- #data=(other_data) ⇒ Hash{Symbol => Object} private
- #initialize ⇒ void constructor private
- #message ⇒ String private
- #message=(other_message) ⇒ String private
- #original_service ⇒ ConvenientService::Service private
- #original_service=(other_service) ⇒ ConvenientService::Service private
- #service ⇒ ConvenientService::Service private
- #service=(other_service) ⇒ ConvenientService::Service private
- #statuses ⇒ Array<Symbol> private
- #statuses=(other_statuses) ⇒ Array<Symbol> private
- #step ⇒ ConvenientService::Service, Symbol private
- #step=(other_step) ⇒ ConvenientService::Service, Symbol private
- #used_code? ⇒ Boolean private
- #used_data? ⇒ Boolean private
- #used_message? ⇒ Boolean private
- #used_original_service? ⇒ Boolean private
- #used_service? ⇒ Boolean private
- #used_step? ⇒ Boolean private
Constructor Details
#initialize ⇒ 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.
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.
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 |
#code ⇒ String, 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.
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.
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_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.
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.
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 |
#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.
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.
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 |
#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.
97 98 99 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 97 def 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.
182 183 184 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 182 def () hash[:message] = end |
#original_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.
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.
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 |
#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.
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.
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 |
#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.
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.
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 |
#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.
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.
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.
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.
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.
34 35 36 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 34 def 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.
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.
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.
70 71 72 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 70 def used_step? hash.key?(:step) end |