Class: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar Private
- Inherits:
-
Base
- Object
- Base
- ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar
- Defined in:
- lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #step ⇒ Object readonly private
Instance Method Summary collapse
- #==(other) ⇒ Boolean? private
- #each_evaluated_step(&block) {|step| ... } ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar private
- #each_step(&block) {|step| ... } ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar private
- #error? ⇒ Boolean private
- #failure? ⇒ Boolean private
- #initialize(step) ⇒ void constructor private
- #inspect ⇒ String private
- #organizer ⇒ ConvenientService::Service private
- #result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result private
- #scalar? ⇒ Boolean private
- #success? ⇒ Boolean private
- #to_arguments ⇒ ConvenientService::Support::Arguments private
- #with_organizer(organizer) ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar private
Methods inherited from Base
#and?, #complex_if?, #else?, #empty?, #group?, #if?, #not?, #or?, #steps
Methods included from ConvenientService::Support::Copyable
Methods included from ConvenientService::Support::AbstractMethod
Methods included from ConvenientService::Support::Concern
Constructor Details
#initialize(step) ⇒ 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.
25 26 27 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 25 def initialize(step) @step = step end |
Instance Attribute Details
#step ⇒ Object (readonly)
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.
19 20 21 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 19 def step @step 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.
125 126 127 128 129 130 131 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 125 def ==(other) return unless other.instance_of?(self.class) return false if step != other.step true end |
#each_evaluated_step(&block) {|step| ... } ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar
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.
91 92 93 94 95 96 97 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 91 def each_evaluated_step(&block) result yield(step) self end |
#each_step(&block) {|step| ... } ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar
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.
77 78 79 80 81 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 77 def each_step(&block) yield(step) self end |
#error? ⇒ 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.
69 70 71 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 69 def error? result.status.unsafe_error? end |
#failure? ⇒ 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.
59 60 61 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 59 def failure? result.status.unsafe_failure? end |
#inspect ⇒ 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.
110 111 112 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 110 def inspect "steps[#{step.index}]" end |
#organizer ⇒ 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.
32 33 34 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 32 def organizer step.organizer end |
#result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
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.
39 40 41 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 39 def result step.result end |
#scalar? ⇒ 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.
117 118 119 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 117 def scalar? true end |
#success? ⇒ 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.
49 50 51 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 49 def success? result.status.unsafe_success? end |
#to_arguments ⇒ ConvenientService::Support::Arguments
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.
136 137 138 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 136 def to_arguments Support::Arguments.new(step) end |
#with_organizer(organizer) ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar
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.
103 104 105 |
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 103 def with_organizer(organizer) copy(overrides: {args: {0 => step.with_organizer(organizer)}}) end |