Sha256: e9e6bd0f21bc309c24bfa3cbe5f260b03362d958f0ceb919f9cdb12ac2a63866
Contents?: true
Size: 865 Bytes
Versions: 3
Compression:
Stored size: 865 Bytes
Contents
# Athenian::GoalTemplateMetric ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'athenian' Athenian::GoalTemplateMetric.openapi_one_of # => # [ # :'JIRAMetricID', # :'PullRequestMetricID', # :'ReleaseMetricID' # ] ``` ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'athenian' Athenian::GoalTemplateMetric.build(data) # => #<JIRAMetricID:0x00007fdd4aab02a0> Athenian::GoalTemplateMetric.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `JIRAMetricID` - `PullRequestMetricID` - `ReleaseMetricID` - `nil` (if no type matches)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
athenian-2.1.86 | docs/GoalTemplateMetric.md |
athenian-2.1.85 | docs/GoalTemplateMetric.md |
athenian-2.1.81 | docs/GoalTemplateMetric.md |