Sha256: f00d65fd5dcbe88d2d04b9ef675129f575f429caf4d640a82157519c4a748554
Contents?: true
Size: 762 Bytes
Versions: 8
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Standard module 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
Version data entries
8 entries across 8 versions & 1 rubygems