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