Sha256: c21d7fee1ce1f047c9fef6367451e2adb94a58319a9a0b6eadd99c096fe09b48

Contents?: true

Size: 823 Bytes

Versions: 3

Compression:

Stored size: 823 Bytes

Contents

# FattureInCloud_Ruby_Sdk::Entity

## Class instance methods

### `openapi_one_of`

Returns the list of classes defined in oneOf.

#### Example

```ruby
require 'fattureincloud_ruby_sdk'

FattureInCloud_Ruby_Sdk::Entity.openapi_one_of
# =>
# [
#   :'Client',
#   :'Supplier'
# ]
```

### build

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

#### Example

```ruby
require 'fattureincloud_ruby_sdk'

FattureInCloud_Ruby_Sdk::Entity.build(data)
# => #<Client:0x00007fdd4aab02a0>

FattureInCloud_Ruby_Sdk::Entity.build(data_that_doesnt_match)
# => nil
```

#### Parameters

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

#### Return type

- `Client`
- `Supplier`
- `nil` (if no type matches)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fattureincloud_ruby_sdk-2.0.3 docs/Entity.md
fattureincloud_ruby_sdk-2.0.2 docs/Entity.md
fattureincloud_ruby_sdk-2.0.1 docs/Entity.md