Class: Chain::MockHSM::Key::Query

Inherits:
Query
  • Object
show all
Defined in:
lib/chain/mock_hsm.rb

Instance Attribute Summary

Attributes inherited from Query

#client

Instance Method Summary collapse

Methods inherited from Query

#each, #initialize

Constructor Details

This class inherits a constructor from Chain::Query

Instance Method Details

#fetch(query) ⇒ Object



57
58
59
# File 'lib/chain/mock_hsm.rb', line 57

def fetch(query)
  client.conn.request('mockhsm/list-keys', query)
end

#translate(obj) ⇒ Object



61
62
63
# File 'lib/chain/mock_hsm.rb', line 61

def translate(obj)
  Key.new(obj)
end