class SixSaferpay::RegistrationError
Attributes
error_message[RW]
error_name[RW]
Public Class Methods
new(error_name: nil, error_message: nil)
click to toggle source
# File lib/six_saferpay/models/registration_error.rb, line 9 def initialize(error_name: nil, error_message: nil) @error_name = error_name @error_message = error_message end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/registration_error.rb, line 16 def to_hash hash = Hash.new hash.merge!(error_name: @error_name) if @error_name hash.merge!(error_message: @error_message) if @error_message hash end
Also aliased as: to_h