Module: WscSdk::ApiResponse

Included in:
Model, ModelList
Defined in:
lib/wsc_sdk/modules/api_response.rb

Overview

Module that adds common functionality for an API response object.

Instance Method Summary collapse

Instance Method Details

#success?Boolean

Determine if the response was a result of a successful API call.

Returns:

  • (Boolean)

    An indication of the success of the call.



15
16
17
18
19
20
21
# File 'lib/wsc_sdk/modules/api_response.rb', line 15

def success?
  if @success.nil?
    @success = true
  end

  @success
end