Sha256: b3e254d2190eab714ac93ebfdb7ff508c71909016367ad080617cbe6cec46208

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

require "goon_model_gen"

require "goon_model_gen/source/type"

module GoonModelGen
  module Source
    class Enum < Type
      attr_reader :base_type, :map

      # @param name [String]
      # @param base_type [String]
      # @param map [Hash<Object,String>]
      def initialize(name, base_type, map)
        super(name)
        @base_type = base_type
        @map = map
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
goon_model_gen-0.2.1 lib/goon_model_gen/source/enum.rb
goon_model_gen-0.2.0 lib/goon_model_gen/source/enum.rb
goon_model_gen-0.1.3 lib/goon_model_gen/source/enum.rb
goon_model_gen-0.1.2 lib/goon_model_gen/source/enum.rb
goon_model_gen-0.1.1 lib/goon_model_gen/source/enum.rb
goon_model_gen-0.1.0 lib/goon_model_gen/source/enum.rb