Class: Glabssms::ErrorResult

Inherits:
Object
  • Object
show all
Defined in:
lib/glabssms/error_result.rb

Overview

This class is used as a response object when any of our calls to Globe Labs fail

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ErrorResult

Returns a new instance of ErrorResult.



9
10
11
# File 'lib/glabssms/error_result.rb', line 9

def initialize(errors)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



7
8
9
# File 'lib/glabssms/error_result.rb', line 7

def errors
  @errors
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/glabssms/error_result.rb', line 13

def success?
  false
end