module Delphix::Utils

Public Instance Methods

request_id() click to toggle source

Generates a uniq UUID, this is then used to identify this session.

@return [String]

Memoize a uniq UUID used to identify this session.
# File lib/delphix/utils.rb, line 36
def request_id
  @uuid ||= SecureRandom.uuid
end
utc_httpdate() click to toggle source

Return the date and time in “HTTP-date” format as defined by RFC 7231.

@return [Date,Time] in “HTTP-date” format

# File lib/delphix/utils.rb, line 27
def utc_httpdate
  Time.now.utc.httpdate
end