Sha256: 589d8e3e37b71203e9a5ab6dc679c8abe692ad02aa7a0fd4af7e9456b69cdcdd
Contents?: true
Size: 902 Bytes
Versions: 5
Compression:
Stored size: 902 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 # This class is used for embedded matcher testing. class Mop include Mongoid::Document # The dynamic attributes are used so that the tests can use various # field names as makes sense for the particular operator. include Mongoid::Attributes::Dynamic # We need some fields of specific types because the query conditions are # transformed differently based on the type of field being queried. field :int_field, type: Integer field :array_field, type: Array field :date_field, type: Date field :time_field, type: Time field :datetime_field, type: DateTime field :big_decimal_field, type: BigDecimal field :decimal128_field, type: BSON::Decimal128 field :symbol_field, type: Symbol field :bson_symbol_field, type: BSON::Symbol::Raw field :regexp_field, type: Regexp field :bson_regexp_field, type: BSON::Regexp::Raw end
Version data entries
5 entries across 5 versions & 1 rubygems