Sha256: 558550e87682ea13e82a342fdc13a9434016c623ce14a0bb9750356c9b0bd537

Contents?: true

Size: 198 Bytes

Versions: 2

Compression:

Stored size: 198 Bytes

Contents

module BinanceAPI
  class Result
    def initialize(struct, success)
      @value = struct
      @success = success
    end

    def success?
      @success
    end

    attr_reader :value
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binance_api-1.0.1 lib/binance_api/result.rb
binance_api-1.0.0 lib/binance_api/result.rb