Sha256: c345420faf386191f6851b353c6c13994c09094d7bfcd9846d1c2a4b57525647

Contents?: true

Size: 995 Bytes

Versions: 20

Compression:

Stored size: 995 Bytes

Contents

# octocatalog-diff v1 API documentation: OctocatalogDiff::API::V1::Override

## Overview

`OctocatalogDiff::API::V1::Override` is an object that represents a user-supplied fact or ENC parameter that will be used when compiling a catalog.

## Constructor

#### `#new(<Hash> { key: <String>, value: <Object> })`

The hash must contain the following keys:

- `:key` (String) - The name of the fact or ENC parameter (e.g. `operatingsystem` or `parameters::fooclass::fooparam`)
- `:value` (?) - The value of the fact or ENC parameter

See also: `#create_from_input`

## Methods

#### `#create_from_input(<String> key=value)` (OctocatalogDiff::API::V1::Override)

Parses the string (see [Overriding facts](/doc/advanced-override-facts.md) for the format to use). Returns a `OctocatalogDiff::API::V1::Override` object with key and value parsed from the string.

#### `#key` (String)

Returns the key as supplied in the constructor.

#### `#value` (?)

Returns the value as supplied in the constructor.

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
octocatalog-diff-2.3.1 doc/dev/api/v1/objects/override.md
octocatalog-diff-2.3.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-2.1.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-2.0.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.6.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.5.4 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.5.3 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.5.2 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.5.1 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.5.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.4.1 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.4.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.3.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.2.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.1.0 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.0.4 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.0.3 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.0.2 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.0.1 doc/dev/api/v1/objects/override.md
octocatalog-diff-1.0.0 doc/dev/api/v1/objects/override.md