module WireClient
Adapter for interacting with Wire transfer service providers
Constants
- LOCAL_INSTRUMENTS
- PAIN_001_001_03
- PAIN_008_001_02
- SEQUENCE_TYPES
- SERVICE_LEVEL_TYPES
- SERVICE_PRIORITY_TYPES
- US_STATES
- VERSION
Increment this when changes are published
Public Class Methods
const_missing(name)
click to toggle source
Enables consumer to interact with new SFTP providers without adding them to the codebase. Let's say the consumer wants to integrate with Citibank. They would invoke WireClient::Citibank, which would be undefined. This const_missing
would be called, and the Citibank module would be dynamically defined, with all the necessary SFTP concerns included and ready for use.
# File lib/wire_client.rb, line 24 def self.const_missing(name) const_set( name, Class.new do include WireClient::SftpProvider # Defines the classes within the provider namespace to use for # sending transactions const_set(:WireBatch, Class.new(WireClient::Sftp::WireBatch)) end ) end
today()
click to toggle source
# File lib/wire_client.rb, line 37 def self.today if Time.zone.present? Time.zone.now.to_date else Date.today end end