Sha256: 8a3f272aa6db89d80111fd49fd260b92f36b7754046f09a5888d9f6768bdda27
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
# PinterestSdkClient::PinMediaSource ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'pinterest_sdk' PinterestSdkClient::PinMediaSource.openapi_one_of # => # [ # :'PinMediaSourceImageBase64', # :'PinMediaSourceImageURL', # :'PinMediaSourceVideoID' # ] ``` ### `openapi_discriminator_name` Returns the discriminator's property name. #### Example ```ruby require 'pinterest_sdk' PinterestSdkClient::PinMediaSource.openapi_discriminator_name # => :'source_type' ``` ### `openapi_discriminator_name` Returns the discriminator's mapping. #### Example ```ruby require 'pinterest_sdk' PinterestSdkClient::PinMediaSource.openapi_discriminator_mapping # => # { # :'image_base64' => :'PinMediaSourceImageBase64', # :'image_url' => :'PinMediaSourceImageURL', # :'video_id' => :'PinMediaSourceVideoID' # } ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'pinterest_sdk' PinterestSdkClient::PinMediaSource.build(data) # => #<PinMediaSourceImageBase64:0x00007fdd4aab02a0> PinterestSdkClient::PinMediaSource.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `PinMediaSourceImageBase64` - `PinMediaSourceImageURL` - `PinMediaSourceVideoID` - `nil` (if no type matches)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pinterest_sdk-1.1.0 | docs/PinMediaSource.md |
pinterest_sdk-1.0.0 | docs/PinMediaSource.md |