Class: GoogleCheckout::ApiError

Inherits:
Notification show all
Defined in:
lib/google-checkout/notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Notification

#acknowledgment_xml, #doc, #method_missing, parse, #serial_number, #state

Constructor Details

#initialize(message = '') ⇒ ApiError

Returns a new instance of ApiError.



370
371
372
# File 'lib/google-checkout/notification.rb', line 370

def initialize(message='')
  @error_message = message
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GoogleCheckout::Notification

Instance Attribute Details

#error_messageObject (readonly) Also known as: message

Returns the value of attribute error_message.



368
369
370
# File 'lib/google-checkout/notification.rb', line 368

def error_message
  @error_message
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


374
375
376
# File 'lib/google-checkout/notification.rb', line 374

def error?
  true
end