Module: ServiceExtend::Callable
- Included in:
- ServiceCaller
- Defined in:
- lib/service_extend/callable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/service_extend/callable.rb', line 3 def error @error end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
3 4 5 |
# File 'lib/service_extend/callable.rb', line 3 def result @result end |
Instance Method Details
#failed? ⇒ Boolean
17 18 19 |
# File 'lib/service_extend/callable.rb', line 17 def failed? !success? end |
#success? ⇒ Boolean
13 14 15 |
# File 'lib/service_extend/callable.rb', line 13 def success? error.nil? end |