Class: Segurofacil::Responses::EstagiarioCreateResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/segurofacil/responses/estagiario_create_response.rb

Constant Summary

Constants inherited from Response

Response::HTTP_SUCCESS

Instance Attribute Summary

Attributes inherited from Response

#raw_body, #status_code

Instance Method Summary collapse

Methods inherited from Response

#error?, #initialize, #success?

Constructor Details

This class inherits a constructor from Segurofacil::Responses::Response

Instance Method Details

#idObject



5
6
7
8
# File 'lib/segurofacil/responses/estagiario_create_response.rb', line 5

def id
  return nil if error?
  @id ||= raw_body
end