Sha256: 6c1665fee3cd113f691bbe21d7491759c87b818e9f551e463fac3a446269a659

Contents?: true

Size: 173 Bytes

Versions: 4

Compression:

Stored size: 173 Bytes

Contents

module CruLib
  class ApiErrorSerializer < ActiveModel::Serializer
    attributes :message

    def _type
      'api_error'
    end

    def id
      _type
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cru_lib-0.0.6 lib/cru_lib/api_error_serializer.rb
cru_lib-0.0.5 lib/cru_lib/api_error_serializer.rb
cru_lib-0.0.4 lib/cru_lib/api_error_serializer.rb
cru_lib-0.0.3 lib/cru_lib/api_error_serializer.rb