Class: SixSaferpay::RegistrationError
- Inherits:
-
Object
- Object
- SixSaferpay::RegistrationError
- Defined in:
- lib/six_saferpay/models/registration_error.rb
Instance Attribute Summary collapse
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#error_name ⇒ Object
Returns the value of attribute error_name.
Instance Method Summary collapse
-
#initialize(error_name: nil, error_message: nil) ⇒ RegistrationError
constructor
A new instance of RegistrationError.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(error_name: nil, error_message: nil) ⇒ RegistrationError
Returns a new instance of RegistrationError.
9 10 11 12 13 14 |
# File 'lib/six_saferpay/models/registration_error.rb', line 9 def initialize(error_name: nil, error_message: nil) @error_name = error_name @error_message = end |
Instance Attribute Details
#error_message ⇒ Object
Returns the value of attribute error_message.
4 5 6 |
# File 'lib/six_saferpay/models/registration_error.rb', line 4 def @error_message end |
#error_name ⇒ Object
Returns the value of attribute error_name.
4 5 6 |
# File 'lib/six_saferpay/models/registration_error.rb', line 4 def error_name @error_name end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
16 17 18 19 20 21 |
# 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 |