Sha256: a092032ca8512510bc9459449232140f5020d87d512115f2755623d91c995def
Contents?: true
Size: 879 Bytes
Versions: 13
Compression:
Stored size: 879 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResult module Entities class Result module Plugins module HasJsendStatusAndAttributes module Entities class Status module ClassMethods def cast(other) case other when ::String new(value: other.to_sym) when ::Symbol new(value: other) when Status new(value: other.value) end end end end end end end end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems