Class: Paypal::Masspay::Error
- Inherits:
-
Object
- Object
- Paypal::Masspay::Error
- Defined in:
- lib/paypal/masspay/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#long_message ⇒ Object
readonly
Returns the value of attribute long_message.
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
-
#short_message ⇒ Object
readonly
Returns the value of attribute short_message.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(params = {}) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 |
# File 'lib/paypal/masspay/error.rb', line 5 def initialize(params = {}) @code = params[:code] @short_message = params[:short_message] @long_message = params[:long_message] @severity = params[:severity] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/paypal/masspay/error.rb', line 3 def code @code end |
#long_message ⇒ Object (readonly)
Returns the value of attribute long_message.
3 4 5 |
# File 'lib/paypal/masspay/error.rb', line 3 def @long_message end |
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
3 4 5 |
# File 'lib/paypal/masspay/error.rb', line 3 def severity @severity end |
#short_message ⇒ Object (readonly)
Returns the value of attribute short_message.
3 4 5 |
# File 'lib/paypal/masspay/error.rb', line 3 def @short_message end |