Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factories::Hash::Base
- Inherits:
-
Base
- Object
- Base
- ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factories::Hash::Base
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #key ⇒ Symbol
-
#value ⇒ Object
Can be any object.
Methods inherited from Base
#==, #create_caller, #create_key, #create_name, #initialize
Methods included from ConvenientService::Support::AbstractMethod
Constructor Details
This class inherits a constructor from ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factories::Base
Instance Method Details
#key ⇒ Symbol
16 17 18 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb', line 16 def key @key ||= other.keys.first end |
#value ⇒ Object
Returns Can be any object.
23 24 25 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb', line 23 def value Utils.memoize_including_falsy_values(self, :@value) { other.values.first } end |