Exception: FreshdeskAPI::Error::RecordInvalid

Inherits:
ClientError
  • Object
show all
Defined in:
lib/freshdesk_api/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/freshdesk_api/error.rb', line 6

def errors
  @errors
end

#responseObject

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_sObject



13
14
15
# File 'lib/freshdesk_api/error.rb', line 13

def to_s
  "#{self.class.name}: #{@errors.to_s}"
end