Exception: PagarMe::ParamError
- Inherits:
-
PagarMeError
- Object
- StandardError
- PagarMeError
- PagarMe::ParamError
- Defined in:
- lib/pagarme/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) ⇒ ParamError
constructor
A new instance of ParamError.
- #to_h ⇒ Object
Constructor Details
#initialize(message, parameter_name, type, url) ⇒ ParamError
Returns a new instance of ParamError.
54 55 56 57 |
# File 'lib/pagarme/errors.rb', line 54 def initialize(, parameter_name, type, url) @parameter_name, @type, @url = parameter_name, type, url super end |
Instance Attribute Details
#parameter_name ⇒ Object (readonly)
Returns the value of attribute parameter_name.
52 53 54 |
# File 'lib/pagarme/errors.rb', line 52 def parameter_name @parameter_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
52 53 54 |
# File 'lib/pagarme/errors.rb', line 52 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
52 53 54 |
# File 'lib/pagarme/errors.rb', line 52 def url @url end |
Instance Method Details
#to_h ⇒ Object
59 60 61 |
# File 'lib/pagarme/errors.rb', line 59 def to_h { parameter_name: parameter_name , type: type , message: } end |