Sha256: 5c443db8a5bec6cf84916d564f87e7f9e2b7ed58282c14d20cf05e71c0d254ab

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

module Transcriber
  class Resource
    class Property < Key
      autoload :Parser,   "transcriber/resource/key/property/parser"
      autoload :Response, "transcriber/resource/key/property/response"
      include Parser
      include Response

      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

1 entries across 1 versions & 1 rubygems

Version Path
transcriber-0.0.26 lib/transcriber/resource/key/property.rb