Class: LedgerSync::QuickBooksOnline::Util::ErrorParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger_sync/quickbooks_online/util/error_parser.rb

Direct Known Subclasses

LedgerErrorParser, OperationErrorParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error:) ⇒ ErrorParser

Returns a new instance of ErrorParser.



11
12
13
# File 'lib/ledger_sync/quickbooks_online/util/error_parser.rb', line 11

def initialize(error:)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



9
10
11
# File 'lib/ledger_sync/quickbooks_online/util/error_parser.rb', line 9

def error
  @error
end

Instance Method Details

#error_classObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/ledger_sync/quickbooks_online/util/error_parser.rb', line 15

def error_class
  raise NotImplementedError
end

#parseObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/ledger_sync/quickbooks_online/util/error_parser.rb', line 19

def parse
  raise NotImplementedError
end