Sha256: 3b27a74078b47ed9d66ece0ff33448c93d25e425fda15bed110941cc1726fb15

Contents?: true

Size: 788 Bytes

Versions: 2

Compression:

Stored size: 788 Bytes

Contents

module Shapeable
  class Configuration

    attr_accessor :path,
      :default_version,
      :default_shape,
      :enforce_versioning,
      :enforce_shape,
      :shape_attr_override,
      :version_attr_override

    def initialize
      @path = nil
      @default_version = nil
      @default_shape = nil
      @enforce_versioning = true
      @enforce_shape = true
      @shape_attr_override = nil
      @version_attr_override = nil
    end

    def as_json
      {
        path: path,
        default_version: default_version,
        default_shape: default_shape,
        enforce_versioning: enforce_versioning,
        enforce_shape: enforce_shape,
        shape_attr_override: shape_attr_override,
        version_attr_override: version_attr_override
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shapeable-0.7.1 lib/shapeable/configuration.rb
shapeable-0.7.0 lib/shapeable/configuration.rb