class CollectionSpace::Search
CollectionSpace
search
Constants
- DEFAULT_SORT
Attributes
Public Class Methods
Source
# File lib/collectionspace/client/search.rb, line 10 def initialize(path: nil, namespace: nil, field: nil, expression: nil) @path = path @namespace = namespace @field = field @expression = expression end
Public Instance Methods
Source
# File lib/collectionspace/client/search.rb, line 17 def from_hash(query) query.each do |property, value| instance_variable_set(:"@#{property}", value) end self end