Module: Delphix::Utils
Instance Method Summary collapse
-
#request_id ⇒ String
Generates a uniq UUID, this is then used to identify this session.
-
#utc_httpdate ⇒ Date, Time
Return the date and time in “HTTP-date” format as defined by RFC 7231.
Instance Method Details
#request_id ⇒ String
Generates a uniq UUID, this is then used to identify this session.
36 37 38 |
# File 'lib/delphix/utils.rb', line 36 def request_id @uuid ||= SecureRandom.uuid end |
#utc_httpdate ⇒ Date, Time
Return the date and time in “HTTP-date” format as defined by RFC 7231.
27 28 29 |
# File 'lib/delphix/utils.rb', line 27 def utc_httpdate Time.now.utc.httpdate end |