Class: Inttegro::Resources::Spec
- Inherits:
-
Object
- Object
- Inttegro::Resources::Spec
- 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
-
#countries ⇒ Inttegro::Shared::CountrySpecifications
Retrieve supported countries, currencies, payment methods, banks, and providers.
-
#initialize(http) ⇒ Spec
constructor
A new instance of Spec.
Constructor Details
#initialize(http) ⇒ Spec
Returns a new instance of Spec.
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.
18 19 20 |
# File 'lib/inttegro/resources/spec.rb', line 18 def countries @http.post_model("/spec/countries", Inttegro::Shared::CountrySpecifications, {}) end |