Class: Transbank::Webpay::Oneclick::MallInscriptionDeleteResponse
- Inherits:
-
Object
- Object
- Transbank::Webpay::Oneclick::MallInscriptionDeleteResponse
- Defined in:
- lib/transbank/sdk/oneclick/inscription/responses/mall_inscription_delete_response.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(code) ⇒ MallInscriptionDeleteResponse
constructor
A new instance of MallInscriptionDeleteResponse.
Constructor Details
#initialize(code) ⇒ MallInscriptionDeleteResponse
Returns a new instance of MallInscriptionDeleteResponse.
6 7 8 9 10 11 12 13 14 |
# File 'lib/transbank/sdk/oneclick/inscription/responses/mall_inscription_delete_response.rb', line 6 def initialize(code) code = code.to_i @code = code if code == 204 @status = 'OK' elsif code == 404 @status = 'Not found' end end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/transbank/sdk/oneclick/inscription/responses/mall_inscription_delete_response.rb', line 5 def code @code end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/transbank/sdk/oneclick/inscription/responses/mall_inscription_delete_response.rb', line 5 def status @status end |