Sha256: 3eafe1affee71a89ba15681c1226a4fe0d36e46ae9e20c15c23f9d12986687f2

Contents?: true

Size: 251 Bytes

Versions: 8

Compression:

Stored size: 251 Bytes

Contents

require_relative 'json_base'

module CorePro
  module Models
    class ApiError < JsonBase
      attr_accessor :code
      attr_accessor :message

      def to_s
        "code: #{@code}, message: #{@message}"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
corepro-1.0.1 lib/corepro/models/api_error.rb
corepro-1.0.0 lib/corepro/models/api_error.rb
corepro-0.0.9 lib/corepro/models/api_error.rb
corepro-0.0.8 lib/corepro/models/api_error.rb
corepro-0.0.7 lib/corepro/models/api_error.rb
corepro-0.0.6 lib/corepro/models/api_error.rb
corepro-0.0.5 lib/corepro/models/api_error.rb
corepro-0.0.4 lib/CorePro/Models/api_error.rb