Sha256: de4ad628e368731eaeb54ed98d6488a34cdd1ddda81d1edb70ca24de56fd4f90

Contents?: true

Size: 696 Bytes

Versions: 3

Compression:

Stored size: 696 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

3 entries across 3 versions & 1 rubygems

Version Path
currency_cloud-0.9.0 lib/currency_cloud/reference.rb
currency_cloud-0.8.2 lib/currency_cloud/reference.rb
currency_cloud-0.8.0 lib/currency_cloud/reference.rb