Class: ConvenientService::Service::Plugins::HasJSendResult::Commands::IsResult

Inherits:
ConvenientService::Support::Command show all
Defined in:
lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ConvenientService::Support::Command

[], call

Constructor Details

#initialize(result:) ⇒ void

Parameters:

  • result (Object)

    Can be any type.



24
25
26
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb', line 24

def initialize(result:)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



18
19
20
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb', line 18

def result
  @result
end

Instance Method Details

#callvoid

This method returns an undefined value.



31
32
33
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb', line 31

def call
  result.class.include?(Entities::Result::Concern)
end