Class: Inttegro::Resources::Spec

Inherits:
Object
  • Object
show all
Defined in:
lib/inttegro/resources/spec.rb

Overview

Read-only client for public country and financial-institution specifications.

Access this resource through Client#spec.

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ Spec

Returns a new instance of Spec.

Parameters:



11
12
13
# File 'lib/inttegro/resources/spec.rb', line 11

def initialize(http)
  @http = T.let(http, Inttegro::HTTPClient)
end

Instance Method Details

#countries ⇒ Inttegro::Shared::CountrySpecifications

Retrieve supported countries, currencies, payment methods, banks, and providers.

Returns:



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

def countries
  @http.post_model("/spec/countries", Inttegro::Shared::CountrySpecifications, {})
end