Sha256: e2879865eb56fd5d3bccd1892ad704a9caded7376615c6d55b557dc4c8dec56f
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResult module Entities class Result module Plugins module HasJSendStatusAndAttributes module Entities class Code module Concern module ClassMethods ## # @param other [Object] Can be any type. # @return [ConvenientService::Service::Plugins::HasResult::Entities::Result::Plugins::HasJSendStatusAndAttributes::Entities::Code, nil] # def cast(other) case other when ::String new(value: other.to_sym) when ::Symbol new(value: other) when Code new(value: other.value) end end end end end end end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.12.0 | lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern/class_methods.rb |