class OvirtMetrics::OvirtHistory

Attributes

connection_specification_name[W]

Public Class Methods

connection_specification_name() click to toggle source
# File lib/ovirt_metrics/models/ovirt_history.rb, line 8
def self.connection_specification_name
  if !defined?(@connection_specification_name) || @connection_specification_name.nil?
    return self == OvirtHistory ? OvirtMetrics.config.connection_specification_name : superclass.connection_specification_name
  end
  @connection_specification_name
end
with_time_range(start_time = nil, end_time = nil) click to toggle source
# File lib/ovirt_metrics/models/ovirt_history.rb, line 15
def self.with_time_range(start_time = nil, end_time = nil)
  return all if start_time.nil?
  where(:history_datetime => (start_time..(end_time || Time.now.utc)))
end