Sha256: d3060e67339e6e17a7e05e6e2a4ae7736c65fddc3d66b633020f89492d415733
Contents?: true
Size: 842 Bytes
Versions: 4
Compression:
Stored size: 842 Bytes
Contents
# SyncteraRubySdk::EventType ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'synctera_ruby_sdk' SyncteraRubySdk::EventType.openapi_one_of # => # [ # :'EventTypeExplicit', # :'EventTypeWildcard' # ] ``` ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'synctera_ruby_sdk' SyncteraRubySdk::EventType.build(data) # => #<EventTypeExplicit:0x00007fdd4aab02a0> SyncteraRubySdk::EventType.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `EventTypeExplicit` - `EventTypeWildcard` - `nil` (if no type matches)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
synctera_ruby_sdk-1.1.3 | docs/EventType.md |
synctera_ruby_sdk-1.1.2 | docs/EventType.md |
synctera_ruby_sdk-1.1.1 | docs/EventType.md |
synctera_ruby_sdk-1.0.0 | docs/EventType.md |