Class: AuthorizeNet::Response

Inherits:
Object
  • Object
show all
Includes:
TypeConversions
Defined in:
lib/authorize_net/response.rb

Overview

The core, API agnostic response class. You shouldn’t instantiate this one. Instead you should use AuthorizeNet::AIM::Response, AuthorizeNet::ARB::Response or AuthorizeNet::SIM::Response.

Direct Known Subclasses

KeyValueResponse, XmlResponse

Constant Summary collapse

@@boolean_fields =

Fields to convert to/from booleans.

[]
@@decimal_fields =

Fields to convert to/from BigDecimal.

[]

Constants included from TypeConversions

TypeConversions::API_FIELD_PREFIX

Instance Method Summary collapse

Methods included from TypeConversions

#boolean_to_value, #date_to_value, #datetime_to_value, #decimal_to_value, #integer_to_value, #to_external_field, #to_internal_field, #to_param, #value_to_boolean, #value_to_date, #value_to_datetime, #value_to_decimal, #value_to_integer

Constructor Details

#initializeResponse

DO NOT USE. Instantiate AuthorizeNet::AIM::Response or AuthorizeNet::SIM::Response instead.



16
17
18
# File 'lib/authorize_net/response.rb', line 16

def initialize()
  raise "#{self.class.to_s} should not be instantiated directly."
end

Instance Method Details

#success?Boolean

Check to see if the response indicated success.

Returns:

  • (Boolean)


21
22
23
# File 'lib/authorize_net/response.rb', line 21

def success?
  false
end