Class: Segurofacil::Apolice
- Inherits:
-
Object
- Object
- Segurofacil::Apolice
- Extended by:
- REST::ApoliceCancel, REST::ApoliceCreate
- Defined in:
- lib/segurofacil/apolice.rb
Constant Summary
Constants included from REST::ApoliceCreate
Constants included from REST::ApoliceCancel
Class Method Summary collapse
- .cancel(cnpj) ⇒ Object
-
.create(company) ⇒ ApoliceCreateResponse
Create a new insurance policy.
Methods included from REST::ApoliceCreate
Methods included from REST::ApoliceCancel
Class Method Details
.cancel(cnpj) ⇒ Object
35 36 37 38 |
# File 'lib/segurofacil/apolice.rb', line 35 def cancel(cnpj) res = super cnpj get_cancel_response(res) end |
.create(company) ⇒ ApoliceCreateResponse
Create a new insurance policy
30 31 32 33 |
# File 'lib/segurofacil/apolice.rb', line 30 def create(company) res = super company get_create_response(res) end |