Class: Brapi::Resources::V2::Crypto
- Inherits:
-
Brapi::Resource
- Object
- Brapi::Resource
- Brapi::Resources::V2::Crypto
- Defined in:
- lib/brapi/resources/v2/crypto.rb
Instance Attribute Summary
Attributes inherited from Brapi::Resource
Instance Method Summary collapse
-
#list_available(**params) ⇒ Object
GET /api/v2/crypto/available.
-
#retrieve(**params) ⇒ Object
GET /api/v2/crypto.
Methods inherited from Brapi::Resource
Constructor Details
This class inherits a constructor from Brapi::Resource
Instance Method Details
#list_available(**params) ⇒ Object
GET /api/v2/crypto/available
14 15 16 17 |
# File 'lib/brapi/resources/v2/crypto.rb', line 14 def list_available(**params) raw = get("/api/v2/crypto/available", params: params) Brapi::Models::V2::CryptoListAvailableResponse.from_h(raw) end |
#retrieve(**params) ⇒ Object
GET /api/v2/crypto
8 9 10 11 |
# File 'lib/brapi/resources/v2/crypto.rb', line 8 def retrieve(**params) raw = get("/api/v2/crypto", params: params) Brapi::Models::V2::CryptoRetrieveResponse.from_h(raw) end |