Class: LogSnag::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/logsnag/result.rb

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



4
5
6
# File 'lib/logsnag/result.rb', line 4

def data
  @data
end

#error_messageObject

Returns the value of attribute error_message

Returns:

  • (Object)

    the current value of error_message



4
5
6
# File 'lib/logsnag/result.rb', line 4

def error_message
  @error_message
end

#status_codeObject

Returns the value of attribute status_code

Returns:

  • (Object)

    the current value of status_code



4
5
6
# File 'lib/logsnag/result.rb', line 4

def status_code
  @status_code
end

#successObject

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



4
5
6
# File 'lib/logsnag/result.rb', line 4

def success
  @success
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/logsnag/result.rb', line 9

def error?
  !success
end

#success?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/logsnag/result.rb', line 5

def success?
  success
end