Sha256: 20f8426638ce9d83262fdc9e0abef69a32f7ee0c502dff60890e5c4a23249a65
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# Fastly::LogInsightsDimensions ## Class instance methods ### `fastly_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'fastly' Fastly::LogInsightsDimensions.fastly_one_of # => # [ # :'DimensionBrowser', # :'DimensionContentType', # :'DimensionCountry', # :'DimensionDevice', # :'DimensionOs', # :'DimensionResponse', # :'DimensionStatusCode', # :'DimensionUrl' # ] ``` ### build Find the appropriate object from the `fastly_one_of` list and casts the data into it. #### Example ```ruby require 'fastly' Fastly::LogInsightsDimensions.build(data) # => #<DimensionBrowser:0x00007fdd4aab02a0> Fastly::LogInsightsDimensions.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `DimensionBrowser` - `DimensionContentType` - `DimensionCountry` - `DimensionDevice` - `DimensionOs` - `DimensionResponse` - `DimensionStatusCode` - `DimensionUrl` - `nil` (if no type matches)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastly-9.0.0 | docs/LogInsightsDimensions.md |