Sha256: 968faba5d0e101ec5d9b7847a9336e001f0047177b446fc559c10c5d9cc860e6
Contents?: true
Size: 450 Bytes
Versions: 7
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true require 'securerandom' module PicoApi module Entities class Error < ROM::Struct attribute? :title, ROM::Types::String attribute? :status, ROM::Types::String.optional attribute? :code, ROM::Types::String.optional attribute? :detail, ROM::Types::String.optional def to_h id.merge(super) end def id { id: SecureRandom.hex(5) } end end end end
Version data entries
7 entries across 7 versions & 1 rubygems