Sha256: 818f263e80bff12a408736677016c8970a618dab5cd93d111ce60b933b8abbdb

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

module CurrencyCloud
  class Reference
    include CurrencyCloud::Resource

    resource :reference

    def self.currencies
      response = client.get("currencies")
      response['currencies'].map { |c| Currency.new(c)}
    end

    def self.beneficiary_required_details(params={})
      client.get("beneficiary_required_details", params)["details"]
    end

    def self.conversion_dates(params)
      dates = client.get("conversion_dates", params)
      ConversionDates.new(dates)
    end

    def self.settlement_accounts(params={})
      response = client.get("settlement_accounts", params)
      response['settlement_accounts'].map { |s| SettlementAccount.new(s) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
currency_cloud-0.7.2 lib/currency_cloud/reference.rb