Class: Tamara::ApplicationService::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/tamara/api/application_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



5
6
7
# File 'lib/tamara/api/application_service.rb', line 5

def error
  @error
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



5
6
7
# File 'lib/tamara/api/application_service.rb', line 5

def payload
  @payload
end

#success?Object

Returns the value of attribute success?

Returns:

  • (Object)

    the current value of success?



5
6
7
# File 'lib/tamara/api/application_service.rb', line 5

def success?
  @success?
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/tamara/api/application_service.rb', line 6

def failure?
  !success?
end