Module: Cloudfront::Utils::Util
- Defined in:
- lib/cloudfront/utils/util.rb
Constant Summary collapse
- FORWARD_POLICY_VALUES =
%w(all whitelist none)
- VIEWER_PROTOCOL_VALUES =
%w(allow-all https-only)
- MATCH_VIEWER_VALUES =
%w(http-only match-viewer)
- URL_REGEXP =
/(^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$)/ix
- PRICE_CLASS =
%w(PriceClass_100 PriceClass_200 PriceClass_All)
Class Method Summary collapse
-
.generate_caller_reference ⇒ Object
Generates a random caller reference.
Class Method Details
.generate_caller_reference ⇒ Object
Generates a random caller reference.
14 15 16 |
# File 'lib/cloudfront/utils/util.rb', line 14 def generate_caller_reference Time.now.xmlschema + ' ' + (0...10).map { ('0'..'9').to_a[rand(10)] }.join end |