Class: Transbank::Webpay::Oneclick::MallInscriptionDeleteResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/transbank/sdk/oneclick/inscription/responses/mall_inscription_delete_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

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

#statusObject

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