module MongoModel::AttributeMethods::Query
Public Instance Methods
query_attribute(name)
click to toggle source
Returns true if the attribute is not blank (i.e. it has some value). Otherwise returns false.
# File lib/mongomodel/concerns/attribute_methods/query.rb, line 11 def query_attribute(name) attributes.has?(name.to_sym) end
Private Instance Methods
attribute?(attribute_name)
click to toggle source
Handle *? for method_missing.
# File lib/mongomodel/concerns/attribute_methods/query.rb, line 17 def attribute?(attribute_name) query_attribute(attribute_name) end