Class: GammaClient::Response

Inherits:
Data
  • Object
show all
Defined in:
app/services/gamma_client.rb

Overview

Service object: response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#data ⇒ Object (readonly)

Returns the value of attribute data

Returns:

  • (Object) —

    the current value of data



24
25
26
# File 'app/services/gamma_client.rb', line 24

def data
  @data
end

#error ⇒ Object (readonly)

Returns the value of attribute error

Returns:

  • (Object) —

    the current value of error



24
25
26
# File 'app/services/gamma_client.rb', line 24

def error
  @error
end

#success ⇒ Object (readonly)

Returns the value of attribute success

Returns:

  • (Object) —

    the current value of success



24
25
26
# File 'app/services/gamma_client.rb', line 24

def success
  @success
end

Instance Method Details

#success? ⇒ Boolean

Returns:

  • (Boolean)


25
# File 'app/services/gamma_client.rb', line 25

def success? = success