Class: Stripe::OAuthErrorObject

Inherits:
StripeObject show all
Defined in:
lib/stripe/error_object.rb

Overview

Represents on OAuth error returned by the OAuth API.

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Method Details

#errorObject

A unique error code per error type.



84
85
86
# File 'lib/stripe/error_object.rb', line 84

def error
  @values[:error]
end

#error_descriptionObject

A human readable description of the error.



89
90
91
# File 'lib/stripe/error_object.rb', line 89

def error_description
  @values[:error_description]
end