Sha256: 822890b574f62b86fd0eb0b22b031341d1a815e2099991c7c1bb8c71ee9b477e
Contents?: true
Size: 1.21 KB
Versions: 28
Compression:
Stored size: 1.21 KB
Contents
module AchClient class ICheckGateway # ICheckGateway credentials for your company class CompanyInfo < Abstract::CompanyInfo attr_reader :api_key, :site_i_d, :site_key, :live ## # @param api_key [String] your ICheckGateway API key # @param site_i_d [String] your ICheckGateway SiteID # @param site_key [String] your ICheckGateway SiteKey # @param live [Boolean] "GatewayLiveMode" value def initialize( api_key:, site_i_d:, site_key:, live: ) @api_key = api_key @site_i_d = site_i_d @site_key = site_key @live = live end ## # @return [CompanyInfo] instance built from configuration values def self.build build_from_config([ :api_key, :live, :site_i_d, :site_key ]) end ## # Build a hash to send to ICheckGateway # @return [Hash] hash to send to ICheckGateway def to_hash { SiteID: @site_i_d, SiteKey: @site_key, APIKey: @api_key, GatewayLiveMode: @live ? '1' : '0' } end end end end
Version data entries
28 entries across 28 versions & 1 rubygems