Class: Graphiti::FilterOperators

Inherits:
Object
  • Object
show all
Defined in:
lib/graphiti/filter_operators.rb

Defined Under Namespace

Classes: Catchall

Class Method Summary collapse

Class Method Details

.build(resource, type_name, opts = {}, &blk) ⇒ Object



34
35
36
37
38
# File 'lib/graphiti/filter_operators.rb', line 34

def self.build(resource, type_name, opts = {}, &blk)
  c = Catchall.new(resource, type_name, opts)
  c.instance_eval(&blk) if blk
  c.to_hash
end