Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Factories::Hash::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb

Instance Attribute Summary

Attributes inherited from Base

#other

Instance Method Summary collapse

Methods inherited from Base

#==, #create_caller, #create_key, #create_name, #initialize

Methods included from ConvenientService::Support::Concern

included

Instance Method Details

#keySymbol

Returns:



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

#valueObject

Returns Can be any object.

Returns:

  • (Object)

    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