Sha256: d93a1cb1ac976714eb4976d2d0d157a95b915a17e2f8fb1318a50f7faf9f211d
Contents?: true
Size: 839 Bytes
Versions: 4
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Standard module V1 class RequestParams module Entities class Format def initialize(value:) @value = value end class << self def cast(value) case value when ::String new(value: value.to_s) end end end def ==(other) return unless other.instance_of?(self.class) value == other.value end def to_s value end protected attr_reader :value end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems