Sha256: d9981566b7589d390ed752a7f2e3869af3c47eae7e0f4624e475924d5451a9c0

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

module Cryptoprocessing
  class APIObject < Hash
    def initialize(client, data)
      super()
      update(data)
      @client = client
    end

    def update(data)
      return if data.nil?
      data.each {|key, val| self[key] = val} if data.is_a?(Hash)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cryptoprocessing-0.6.1 lib/cryptoprocessing/models/api_object.rb