Class: Flinks::Client

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Includes:
API::Account, API::Card, API::Refresh, API::Statement, Request
Defined in:
lib/flinks/client.rb

Constant Summary

Constants included from API::Statement

API::Statement::StatementRequestSchema

Constants included from API::Account

API::Account::AccountDetailRequestSchema, API::Account::AccountSummaryRequestSchema

Instance Method Summary collapse

Methods included from API::Statement

#statements, #statements_async

Methods included from API::Refresh

#activate_scheduled_refresh, #deactivate_scheduled_refresh, #set_scheduled_refresh

Methods included from API::Card

#delete_card

Methods included from API::Account

#accounts_detail, #accounts_detail_async, #accounts_summary, #accounts_summary_async

Methods included from Request

#get, #patch, #post

Instance Method Details

#error_message(validation) ⇒ String

Parameters:

  • validation (Dry::Validation::Result)

Returns:

  • (String)


32
33
34
# File 'lib/flinks/client.rb', line 32

def error_message(validation)
  validation.messages(full: true).values.flatten.to_sentence
end