Module: ConvenientService::Common::Plugins::HasJSendResultDuckShortSyntax::Concern

Includes:
Support::Concern
Defined in:
lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax/concern.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object

Returns Can be any type.

Parameters:

  • key (String, Symbol)

Returns:

  • (Object)

    Can be any type.



25
26
27
# File 'lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax/concern.rb', line 25

def [](key)
  data[key]
end

#not_ok?Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax/concern.rb', line 60

def not_ok?
  not_success?
end

#ok?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax/concern.rb', line 53

def ok?
  success?
end