Sha256: afa4d296759408eb810ccce5a5e50b74233edcc0b26c23b8323e1ac1ef625553
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
module Unit module Util class Error < StandardError attr_accessor :title, :status, :details, :detail def initialize(api_response) error = api_response['errors'].first @title = error['title'] @status = error['status'] @details = error['details'] || error['detail'] super(@details) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unit-ruby-0.1.0 | lib/unit-ruby/util/error.rb |