Exception: FreshdeskAPI::Error::RecordInvalid
- Inherits:
-
ClientError
- Object
- StandardError
- ClientError
- FreshdeskAPI::Error::RecordInvalid
- Defined in:
- lib/freshdesk_api/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ RecordInvalid
Returns a new instance of RecordInvalid.
8 9 10 11 |
# File 'lib/freshdesk_api/error.rb', line 8 def initialize(response) @response = response binding.pry end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/freshdesk_api/error.rb', line 6 def errors @errors end |
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/freshdesk_api/error.rb', line 6 def response @response end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/freshdesk_api/error.rb', line 13 def to_s "#{self.class.name}: #{@errors.to_s}" end |