Sha256: 80d3ffa9d3c190d2c442063256ad6e3a88a4207ccf6b4669ca0731393f644eb7

Contents?: true

Size: 230 Bytes

Versions: 2

Compression:

Stored size: 230 Bytes

Contents

module TranslatorText
  module Types
    class Translation < Dry::Struct
      include Types::JSON

      transform_keys(&:to_sym)

      attribute :text, Types::Strict::String
      attribute :to, Types::Symbol
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
translator-text-0.2.0 lib/translator_text/types/translation.rb
translator-text-0.1.0 lib/translator_text/types/translation.rb