class TimeTree::ApiError
TimeTree
apis client error object.
Attributes
errors[R]
@return [String]
response[R]
@return [Faraday::Response]
status[R]
@return [Integer]
title[R]
@return [String]
type[R]
@return [String]
Public Class Methods
new(response)
click to toggle source
# File lib/timetree/api_error.rb, line 17 def initialize(response) @response = response @type = response.body[:type] @title = response.body[:title] @errors = response.body[:errors] @status = response.status end
Public Instance Methods
inspect()
click to toggle source
# File lib/timetree/api_error.rb, line 25 def inspect "\#<#{self.class}:#{object_id} title:#{title}, status:#{status}>" end