Class: Chain::MockHSM::Key::ClientModule
- Inherits:
-
ClientModule
- Object
- ClientModule
- Chain::MockHSM::Key::ClientModule
- Defined in:
- lib/chain/mock_hsm.rb
Instance Attribute Summary
Attributes inherited from ClientModule
Instance Method Summary collapse
-
#create(opts = {}) ⇒ Key
Creates a key object.
- #query(opts = {}) ⇒ Query
Methods inherited from ClientModule
Constructor Details
This class inherits a constructor from Chain::ClientModule
Instance Method Details
#create(opts = {}) ⇒ Key
Creates a key object.
44 45 46 |
# File 'lib/chain/mock_hsm.rb', line 44 def create(opts = {}) Key.new(client.conn.request('mockhsm/create-key', opts)) end |
#query(opts = {}) ⇒ Query
51 52 53 |
# File 'lib/chain/mock_hsm.rb', line 51 def query(opts = {}) Query.new(client, opts) end |