Sha256: 5add8340c3955d25ddec3da389eb13c7375c3c2adbfecc2e2322d581a8ac8820

Contents?: true

Size: 886 Bytes

Versions: 3

Compression:

Stored size: 886 Bytes

Contents

# Athenian::CalculatedPullRequestHistogramFrequenciesInner

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'athenian'

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

### build

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

#### Example

```ruby
require 'athenian'

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

Athenian::CalculatedPullRequestHistogramFrequenciesInner.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`
- `String`
- `nil` (if no type matches)

Version data entries

3 entries across 3 versions & 1 rubygems

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