Class: Inttegro::Resources::Balances
- Inherits:
-
Object
- Object
- Inttegro::Resources::Balances
- Defined in:
- lib/inttegro/resources/balances.rb
Overview
Read-only client for the authenticated application's balance snapshot.
Access this resource through Client#balances.
Instance Method Summary collapse
-
#get ⇒ Inttegro::Balance::Snapshot
Retrieve the latest strongly typed GHS balance snapshot.
-
#initialize(http) ⇒ Balances
constructor
A new instance of Balances.
Constructor Details
#initialize(http) ⇒ Balances
Returns a new instance of Balances.
11 12 13 |
# File 'lib/inttegro/resources/balances.rb', line 11 def initialize(http) @http = T.let(http, Inttegro::HTTPClient) end |
Instance Method Details
#get ⇒ Inttegro::Balance::Snapshot
Retrieve the latest strongly typed GHS balance snapshot.
18 19 20 |
# File 'lib/inttegro/resources/balances.rb', line 18 def get @http.post_resource("/balances", Inttegro::Balance::Snapshot, :balances, {}) end |