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
- #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_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.
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 |
#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.
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.
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_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.
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.
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 |
#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.
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.
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 |
#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.
88 89 90 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 88 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.
164 165 166 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 164 def () hash[:message] = 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.
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.
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 |
#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.
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.
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 |
#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.
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.
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.
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_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.
61 62 63 |
# File 'lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb', line 61 def used_step? hash.key?(:step) end |