Method: Yt::Models::PolicyRule#reference_duration

Defined in:
lib/yt/models/policy_rule.rb

#reference_durationArray<Hash<Symbol, Float>>

Returns the intervals of duration that the reference must have for the rule to apply. :low is the minimum (inclusive) allowed value, :high is the maximum (inclusive) allowed value for the rule to apply.

Examples:

references that are between 20 and 30 seconds:

reference_duration #= [{low: 20.0, high: 30.0}]

Returns:

  • (Array<Hash<Symbol, Float>>)

    the intervals of duration that the reference must have for the rule to apply. :low is the minimum (inclusive) allowed value, :high is the maximum (inclusive) allowed value for the rule to apply.



73
74
75
# File 'lib/yt/models/policy_rule.rb', line 73

def reference_duration
  reference_duration_list.map{|r| low_and_high r}
end