class CloudParty::Responses::Timing

Attributes

end_time[R]
process_time[R]
start_time[R]

Public Class Methods

new(hsh) click to toggle source
# File lib/cloud_party/responses/dns_records.rb, line 169
def initialize(hsh)
  @entries = []
  hsh.each do |key, value|
    @entries << "#{key}=#{value}"
  end
  start_time   = DateTime.iso8601(hsh.dig(:start_time))
  end_time     = DateTime.iso8601(hsh.dig(:end_time))
  process_time = hsh.dig(:process_time).to_i

end

Public Instance Methods

inspect() click to toggle source
# File lib/cloud_party/responses/dns_records.rb, line 184
def inspect
  to_s
end
to_s() click to toggle source
# File lib/cloud_party/responses/dns_records.rb, line 180
def to_s
  "#<Timing: #{@entries}>"
end