class Cryptoprocessing::APIObject

Public Class Methods

new(client, data) click to toggle source
Calls superclass method
# File lib/cryptoprocessing/models/api_object.rb, line 3
def initialize(client, data)
  super()
  update(data)
  @client = client
end

Public Instance Methods

update(data) click to toggle source
# File lib/cryptoprocessing/models/api_object.rb, line 9
def update(data)
  return if data.nil?
  data.each {|key, val| self[key] = val} if data.is_a?(Hash)
end