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.



10
11
12
# File 'lib/freshdesk_api/error.rb', line 10

def initialize(response)
  @response = response
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



8
9
10
# File 'lib/freshdesk_api/error.rb', line 8

def errors
  @errors
end

#responseObject

Returns the value of attribute response.



8
9
10
# File 'lib/freshdesk_api/error.rb', line 8

def response
  @response
end

Instance Method Details

#to_sObject



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

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