Module: Segurofacil::REST::ApoliceCreate

Included in:
Apolice
Defined in:
lib/segurofacil/rest/apolice_create.rb

Constant Summary collapse

PATH =
'createapolice'

Instance Method Summary collapse

Instance Method Details

#create(company) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/segurofacil/rest/apolice_create.rb', line 7

def create(company)
  Segurofacil::REST::Request.post(
    PATH,
    params: {
      company: company
    }
  ).perform
end