Exception: Shipay::ParamError
- Inherits:
-
ShipayError
- Object
- StandardError
- ShipayError
- Shipay::ParamError
- Defined in:
- lib/shipay/errors.rb
Instance Attribute Summary collapse
-
#parameter_name ⇒ Object
readonly
Returns the value of attribute parameter_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(message, parameter_name, type, url = nil) ⇒ ParamError
constructor
A new instance of ParamError.
- #to_h ⇒ Object
Constructor Details
#initialize(message, parameter_name, type, url = nil) ⇒ ParamError
60 61 62 63 |
# File 'lib/shipay/errors.rb', line 60 def initialize(, parameter_name, type, url=nil) @parameter_name, @type, @url = parameter_name, type, url super end |
Instance Attribute Details
#parameter_name ⇒ Object (readonly)
Returns the value of attribute parameter_name.
58 59 60 |
# File 'lib/shipay/errors.rb', line 58 def parameter_name @parameter_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
58 59 60 |
# File 'lib/shipay/errors.rb', line 58 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
58 59 60 |
# File 'lib/shipay/errors.rb', line 58 def url @url end |
Instance Method Details
#to_h ⇒ Object
65 66 67 |
# File 'lib/shipay/errors.rb', line 65 def to_h { parameter_name: parameter_name, type: type, message: } end |