Class: Inttegro::Resources::Spec

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

Instance Method Summary collapse

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

#countriesObject



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

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