Class: CryptomateApi::Management::Operation

Inherits:
Base
  • Object
show all
Defined in:
lib/cryptomate_api/management/operation.rb

Overview

Get all the operations available in the platform. You can use this information to create new credentials for your clients.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CryptomateApi::Base

Instance Method Details

#get_all_operationsObject

Get all operations cryptomate.me/docs/management#get-all-operations Response: [

{
  "id": "string",
  "description": "string"
}

]



17
18
19
# File 'lib/cryptomate_api/management/operation.rb', line 17

def get_all_operations
  self.class.get('/management/operations/list')
end

#get_operation(operation_id) ⇒ Object

Get a specific operation cryptomate.me/docs/management#get-a-operation Response:

"id": "string",
"description": "string"



28
29
30
# File 'lib/cryptomate_api/management/operation.rb', line 28

def get_operation(operation_id)
  self.class.get("/management/operations/#{operation_id}")
end