Class: ConceptQL::Operators::Person

Inherits:
CastingOperator show all
Defined in:
lib/conceptql/operators/person.rb

Constant Summary

Constants inherited from Operator

Operator::COLUMNS

Instance Attribute Summary

Attributes inherited from Operator

#arguments, #options, #upstreams, #values

Instance Method Summary collapse

Methods inherited from CastingOperator

#castables, #query, #type, #types

Methods inherited from Operator

#columns, #evaluate, #initialize, #label, #select_it, #set_values, #sql, #stream, #types

Methods included from Metadatable

#allows_many_upstreams, #allows_one_upstream, #argument, #category, #desc, #humanized_class_name, #inherited, #just_class_name, #option, #predominant_types, #preferred_name, #reset_categories, #to_metadata, #types

Constructor Details

This class inherits a constructor from ConceptQL::Operators::Operator

Instance Method Details

#i_point_atObject



14
15
16
# File 'lib/conceptql/operators/person.rb', line 14

def i_point_at
  []
end

#my_typeObject



10
11
12
# File 'lib/conceptql/operators/person.rb', line 10

def my_type
  :person
end

#these_point_at_meObject



18
19
20
21
22
23
24
25
26
# File 'lib/conceptql/operators/person.rb', line 18

def these_point_at_me
  # I could list ALL the types we use, but the default behavior of casting,
  # when there is no explicit casting defined, is to convert everything to
  # person IDs
  #
  # So by defining no known castable relationships in this operator, all
  # types will be converted to person
  []
end