module Transbank::Onepay::Response

Shared methods and attributes between all types of Responses

Attributes

description[RW]
response_code[RW]

Public Instance Methods

full_description() click to toggle source
# File lib/transbank/sdk/onepay/responses/response.rb, line 13
def full_description
  "#{ response_code } : #{ description }"
end
response_ok?() click to toggle source
# File lib/transbank/sdk/onepay/responses/response.rb, line 9
def response_ok?
  response_code.downcase == 'ok'
end