Sha256: e0d6285b953eeaeed9f56eeebd1f82311e563d056e0197ff8cf278efa9f50321
Contents?: true
Size: 761 Bytes
Versions: 8
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Standard module RequestParams module Entities class Title 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