Class: BugReportsClient::ApiClient::Result

Inherits:
Struct
  • Object
show all
Defined in:
app/services/bug_reports_client/api_client.rb

Overview

Simple success/failure wrapper returned by the public methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



14
15
16
# File 'app/services/bug_reports_client/api_client.rb', line 14

def data
  @data
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



14
15
16
# File 'app/services/bug_reports_client/api_client.rb', line 14

def message
  @message
end

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



14
15
16
# File 'app/services/bug_reports_client/api_client.rb', line 14

def success
  @success
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


15
# File 'app/services/bug_reports_client/api_client.rb', line 15

def success? = !!success