Sha256: 6f9d405420b6e3d2818e5ae15840ed96b7eb838a6c485cef8e9e530b9f1de06f

Contents?: true

Size: 781 Bytes

Versions: 2

Compression:

Stored size: 781 Bytes

Contents

require "bitflyer_api/http/connection"
require "bitflyer_api/methods/public"
require "bitflyer_api/methods/private/account_statement"
require "bitflyer_api/methods/private/api"
require "bitflyer_api/methods/private/assets"
require "bitflyer_api/methods/private/trade"

module BitflyerApi
  class Client
    include BitflyerApi::Methods::Public
    include BitflyerApi::Methods::Private::AccountStatement
    include BitflyerApi::Methods::Private::API
    include BitflyerApi::Methods::Private::Assets
    include BitflyerApi::Methods::Private::Trade

    attr_accessor :conn

    def initialize(key, secret)
      @conn = BitflyerApi::HTTP::Connection.new(key, secret)
    end

    private
    def prepare_query(options)
      options.delete_if { |_, v| v.nil? }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bitflyer_api-0.1.1 lib/bitflyer_api/client.rb
bitflyer_api-0.1.0 lib/bitflyer_api/client.rb