Class: LedgerSync::Ledgers::TestLedger::Util::LedgerErrorParser::ClientMatcher
- Inherits:
-
ErrorMatcher
- Object
- ErrorMatcher
- LedgerSync::Ledgers::TestLedger::Util::LedgerErrorParser::ClientMatcher
show all
- Defined in:
- lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb
Instance Attribute Summary
Attributes inherited from ErrorMatcher
#error, #message
Instance Method Summary
collapse
#body, #code, #detail, #error_message, #initialize
Instance Method Details
#match? ⇒ Boolean
66
67
68
69
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 66
def match?
message.include?('invalid_client') ||
message.include?('invalid_grant')
end
|
#output_message ⇒ Object
62
63
64
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 62
def output_message
"Missing Configuration: #{error_message}"
end
|