module Ey::Core

Constants

IP_REGEX
VERSION

Public Class Methods

colocated?(location_a, location_b) click to toggle source

@fixme find a much better way to do this

# File lib/ey-core.rb, line 35
def self.colocated?(location_a, location_b)
  location_a.gsub(/[a-z]$/, "") == location_b.gsub(/[a-z]$/, "")
end
paging_parameters(params) click to toggle source
# File lib/ey-core.rb, line 26
def self.paging_parameters(params)
  if url = params['url']
    Addressable::URI.parse(url).query_values
  else
    params
  end
end