Class: Cesri::ResponseMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/cesri/response_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ResponseMessage

Returns a new instance of ResponseMessage.



9
10
11
12
13
14
# File 'lib/cesri/response_message.rb', line 9

def initialize(message)
  @identificador = identificador_value(message)
  @mensaje = mensaje_value(message)
  @informacion_adicional = informacion_adicional_value(message)
  @tipo = tipo_value(message)
end

Instance Attribute Details

#identificadorObject (readonly)

Returns the value of attribute identificador.



4
5
6
# File 'lib/cesri/response_message.rb', line 4

def identificador
  @identificador
end

#informacion_adicionalObject (readonly)

Returns the value of attribute informacion_adicional.



6
7
8
# File 'lib/cesri/response_message.rb', line 6

def informacion_adicional
  @informacion_adicional
end

#mensajeObject (readonly)

Returns the value of attribute mensaje.



5
6
7
# File 'lib/cesri/response_message.rb', line 5

def mensaje
  @mensaje
end

#tipoObject (readonly)

Returns the value of attribute tipo.



7
8
9
# File 'lib/cesri/response_message.rb', line 7

def tipo
  @tipo
end