Sha256: 78e83988a6abbfa5bae73553a431fd5f246ff8043b670ab445490ff322e136f4

Contents?: true

Size: 366 Bytes

Versions: 6

Compression:

Stored size: 366 Bytes

Contents

module Transcriber
  class Resource
    class Property < Key
      include Parser::Property
      include Response::Property

      attr_accessor :serializer, :translations

      def initialize(name, options = {})
        super
        @serializer   = options.fetch(:type, Serialization::String)
        @translations = options[:values]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
transcriber-0.0.25 lib/transcriber/resource/key/property.rb
transcriber-0.0.24 lib/transcriber/resource/key/property.rb
transcriber-0.0.23 lib/transcriber/resource/key/property.rb
transcriber-0.0.22 lib/transcriber/resource/key/property.rb
transcriber-0.0.21 lib/transcriber/resource/key/property.rb
transcriber-0.0.20 lib/transcriber/resource/key/property.rb