Class: OFX::Status

Inherits:
Foundation show all
Defined in:
lib/ofx/status.rb

Overview

Error Reporting Aggregate

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Foundation

#initialize

Constructor Details

This class inherits a constructor from OFX::Foundation

Instance Attribute Details

#codeObject

Error code



4
5
6
# File 'lib/ofx/status.rb', line 4

def code
  @code
end

#messageObject

Textual explanation



6
7
8
# File 'lib/ofx/status.rb', line 6

def message
  @message
end

#severityObject

Severity of the error



5
6
7
# File 'lib/ofx/status.rb', line 5

def severity
  @severity
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/ofx/status.rb', line 8

def success?
  code == 0
end