Class: Inttegro::Resources::Balances

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(http) ⇒ Balances

Returns a new instance of Balances.

Parameters:



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.

Returns:



18
19
20
# File 'lib/inttegro/resources/balances.rb', line 18

def get
  @http.post_resource("/balances", Inttegro::Balance::Snapshot, :balances, {})
end