Sha256: ab82b9ccc3785a65b9851e8442d65df9163eaa4b07f02e7ec7e955705446cd05

Contents?: true

Size: 321 Bytes

Versions: 9

Compression:

Stored size: 321 Bytes

Contents

module CurrencyCloud
  class Balance
    include CurrencyCloud::Resource

    resource :balances
    actions :find

    def self.currency(ccy)
      new(client.get(ccy))
    end

    def self.top_up_margin(params)
      top_up = client.post("top_up_margin", params)
      MarginBalanceTopUp.new(top_up)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
currency_cloud-1.5.0 lib/currency_cloud/balance.rb
currency_cloud-1.4.0 lib/currency_cloud/balance.rb
currency_cloud-1.3.1 lib/currency_cloud/balance.rb
currency_cloud-1.3.0 lib/currency_cloud/balance.rb
currency_cloud-1.2.1 lib/currency_cloud/balance.rb
currency_cloud-1.1.4 lib/currency_cloud/balance.rb
currency_cloud-1.0.3 lib/currency_cloud/balance.rb
currency_cloud-0.17.7 lib/currency_cloud/balance.rb
currency_cloud-0.16.2 lib/currency_cloud/balance.rb