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.

Class Method Summary collapse

Class Method Details

.get_all_operationsObject

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

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

]



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

def get_all_operations
  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"



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

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