Sha256: dc4985a8b87940a232597aa0ad7de7743087f4f3988fa421e4b84c4e0dea32fc
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
# Fastly::WafRuleRevisionOrLatest ## Class instance methods ### `fastly_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'fastly' Fastly::WafRuleRevisionOrLatest.fastly_one_of # => # [ # :'Float', # :'String' # ] ``` ### build Find the appropriate object from the `fastly_one_of` list and casts the data into it. #### Example ```ruby require 'fastly' Fastly::WafRuleRevisionOrLatest.build(data) # => #<Float:0x00007fdd4aab02a0> Fastly::WafRuleRevisionOrLatest.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastly-4.0.0.alpha2 | docs/WafRuleRevisionOrLatest.md |