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.



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

def initialize(result:)
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



13
14
15
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb', line 13

def result
  @result
end

Instance Method Details

#callvoid

This method returns an undefined value.



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

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