class Bosh::Director::Api::Controllers::EventsController

Constants

EVENT_LIMIT

Private Instance Methods

integer?(string) click to toggle source
# File lib/bosh/director/api/controllers/events_controller.rb, line 66
def integer?(string)
  string =~ /\A[-+]?\d+\z/
end
timestamp_filter_value(value) click to toggle source
# File lib/bosh/director/api/controllers/events_controller.rb, line 61
def timestamp_filter_value(value)
  return Time.at(value.to_i).utc if integer?(value)
  Time.parse(value)
end