Class: Inttegro::Resources::Spec
- Inherits:
-
Object
- Object
- Inttegro::Resources::Spec
- Defined in:
- lib/inttegro/resources/spec.rb
Instance Method Summary collapse
- #countries ⇒ Object
-
#initialize(http) ⇒ Spec
constructor
A new instance of Spec.
Constructor Details
#initialize(http) ⇒ Spec
Returns a new instance of Spec.
7 8 9 |
# File 'lib/inttegro/resources/spec.rb', line 7 def initialize(http) @http = T.let(http, Inttegro::HTTPClient) end |
Instance Method Details
#countries ⇒ Object
11 12 13 |
# File 'lib/inttegro/resources/spec.rb', line 11 def countries @http.post_model("/spec/countries", Inttegro::CountrySpecifications, {}) end |