Class: AuthorizeNet::Response
- Inherits:
-
Object
- Object
- AuthorizeNet::Response
- Includes:
- TypeConversions
- Defined in:
- lib/authorize_net/response.rb
Overview
The core, API agnostic response class. You shouldn’t instantiate this one.
Direct Known Subclasses
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
-
#initialize ⇒ Response
constructor
DO NOT USE.
-
#success? ⇒ Boolean
Check to see if the response indicated success.
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
#initialize ⇒ Response
DO NOT USE.
14 15 16 |
# File 'lib/authorize_net/response.rb', line 14 def initialize raise "#{self.class} should not be instantiated directly." end |
Instance Method Details
#success? ⇒ Boolean
Check to see if the response indicated success.
19 20 21 |
# File 'lib/authorize_net/response.rb', line 19 def success? false end |