Sha256: 546c6786b8533a62e99f1825479a6cfe6f9eafbc58229a656df058b8197395fe
Contents?: true
Size: 766 Bytes
Versions: 5
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Standard class RequestParams module Entities class Description 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
5 entries across 5 versions & 1 rubygems