module Collins::Asset::Find

Constants

ALL_PARAMS

@return [Array<String>] DATE_PARAMS plus GENERAL_PARAMS

DATE_PARAMS

Find API parameters that are dates @return [Array<String>] Date related query parameters

GENERAL_PARAMS

Find API parameters that are not dates This list exists so that when assets are being queries, we know what keys in the find hash are attributes of the asset (such as hostname), and which are nort (such as sort or page). @return [Array,<String>] Non-date related query parameters that are 'reserved'

Public Class Methods

to_a() click to toggle source
# File lib/collins/asset_find.rb, line 20
def to_a
  Collins::Asset::Find::ALL_PARAMS
end
valid?(key) click to toggle source
# File lib/collins/asset_find.rb, line 23
def valid? key
  to_a.include?(key.to_s)
end