class Servicify::Object

Attributes

result[R]

Public Class Methods

call(*arg, **opts) click to toggle source
# File lib/servicify/object.rb, line 4
def call(*arg, **opts)
  new(*arg, **opts).constructor
end

Public Instance Methods

call() click to toggle source
Calls superclass method
# File lib/servicify/object.rb, line 28
def call
  fail NotImplementedError unless defined?(super)
end
constructor() click to toggle source
# File lib/servicify/object.rb, line 11
def constructor
  @result = call
  self
end
errors() click to toggle source
# File lib/servicify/object.rb, line 24
def errors
  @errors ||= Servicify::Common::Errors.new
end
failure?() click to toggle source
# File lib/servicify/object.rb, line 20
def failure?
  errors.any?
end
success?() click to toggle source
# File lib/servicify/object.rb, line 16
def success?
  !failure?
end