Exception: SyncwiseApi::Errors::InvalidContentType

Inherits:
SyncwiseError show all
Defined in:
lib/syncwise_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resp, request, header) ⇒ InvalidContentType

Returns a new instance of InvalidContentType.



70
71
72
73
74
75
# File 'lib/syncwise_api/errors.rb', line 70

def initialize(resp, request, header)
  @resp = resp
  @request = request
  @header = header
  super("Api call returned an invalid Content-Type. Response: #{@resp}, request: #{@request}, header: #{@header}")
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



77
78
79
# File 'lib/syncwise_api/errors.rb', line 77

def header
  @header
end

#requestObject (readonly)

Returns the value of attribute request.



77
78
79
# File 'lib/syncwise_api/errors.rb', line 77

def request
  @request
end

#respObject (readonly)

Returns the value of attribute resp.



77
78
79
# File 'lib/syncwise_api/errors.rb', line 77

def resp
  @resp
end