Sha256: 5a3fcf7c020136b989a6c4721e1a4eb44f568a10940b60b9be7eba2ee83a12c7

Contents?: true

Size: 884 Bytes

Versions: 3

Compression:

Stored size: 884 Bytes

Contents

# Athenian::CalculatedLinearMetricValuesValuesInner

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'athenian'

Athenian::CalculatedLinearMetricValuesValuesInner.openapi_one_of
# =>
# [
#   :'Float',
#   :'Object',
#   :'String'
# ]
```

### build

Find the appropriate object from the `openapi_one_of` list and casts the data into it.

#### Example

```ruby
require 'athenian'

Athenian::CalculatedLinearMetricValuesValuesInner.build(data)
# => #<Float:0x00007fdd4aab02a0>

Athenian::CalculatedLinearMetricValuesValuesInner.build(data_that_doesnt_match)
# => nil
```

#### Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| **data** | **Mixed** | data to be matched against the list of oneOf items |

#### Return type

- `Float`
- `Object`
- `String`
- `nil` (if no type matches)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
athenian-2.1.86 docs/CalculatedLinearMetricValuesValuesInner.md
athenian-2.1.85 docs/CalculatedLinearMetricValuesValuesInner.md
athenian-2.1.81 docs/CalculatedLinearMetricValuesValuesInner.md