Method: AWS::Core::Policy::ConditionBlock#values
- Defined in:
- lib/aws/core/policy.rb
#values ⇒ Array
Returns all values used in the block. Note that the values may not all be from the same condition; for example:
conditions.add(:like, :user_agent, "mozilla", "explorer") conditions.add(:lt, :s3_max_keys, 12) conditions.values # => ["mozilla", "explorer", 12]
444 445 446 447 448 |
# File 'lib/aws/core/policy.rb', line 444 def values @conditions.values.map do |keys| keys.values end.compact.flatten end |