Class: INatGet::Data::DSL::Condition::NOT
#manager
#api_query, #sequel_query
#AND, #ANYTHING, #NOT, #NOTHING, #OR, #Q, #finish_time, #get_identification, #get_observation, #get_place, #get_project, #get_taxon, #get_user, #now, #select_identifications, #select_observations, #select_places, #select_projects, #select_taxa, #select_users, #start_time, #time_range, #today, #version, #version!, #version?, #version_alias
Instance Attribute Details
#model ⇒ class of Sequel::Model
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
16
17
18
|
# File 'lib/inat-get/data/dsl/conditions/not.rb', line 16
def model
@operand.model
end
|
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
11
12
13
|
# File 'lib/inat-get/data/dsl/conditions/not.rb', line 11
def operand
@operand
end
|
Instance Method Details
48
49
50
|
# File 'lib/inat-get/data/dsl/conditions/not.rb', line 48
def !
@operand
end
|
30
31
32
33
34
35
36
|
# File 'lib/inat-get/data/dsl/conditions/not.rb', line 30
def & other
if @operand == other
INatGet::Data::DSL::NOTHING
else
AND[ self, other ]
end
end
|
#==(other) ⇒ Boolean
53
54
55
56
57
|
# File 'lib/inat-get/data/dsl/conditions/not.rb', line 53
def == other
return true if self.equal?(other)
return false unless other.is_a?(NOT)
self.operand == other.operand
end
|
39
40
41
42
43
44
45
|
# File 'lib/inat-get/data/dsl/conditions/not.rb', line 39
def | other
if @operand == other
INatGet::Data::DSL::ANYTHING
else
OR[ self, other ]
end
end
|