Sha256: 143adb2778b1fa7a342ca8e385696fc6145dd9d750147d5471783f5459b39dc0

Contents?: true

Size: 1.4 KB

Versions: 18

Compression:

Stored size: 1.4 KB

Contents

module Frodo
  class Query
    class Criteria
      module DateFunctions
        # Applies the `year` function.
        # @return [self]
        def year
          set_function_and_argument(:year, nil)
        end

        # Applies the `month` function.
        # @return [self]
        def month
          set_function_and_argument(:month, nil)
        end

        # Applies the `day` function.
        # @return [self]
        def day
          set_function_and_argument(:day, nil)
        end

        # Applies the `hour` function.
        # @return [self]
        def hour
          set_function_and_argument(:hour, nil)
        end

        # Applies the `minute` function.
        # @return [self]
        def minute
          set_function_and_argument(:minute, nil)
        end

        # Applies the `second` function.
        # @return [self]
        def second
          set_function_and_argument(:second, nil)
        end

        # Applies the `fractionalseconds` function.
        # @return [self]
        def fractionalseconds
          set_function_and_argument(:fractionalseconds, nil)
        end

        # Applies the `date` function.
        # @return [self]
        def date
          set_function_and_argument(:date, nil)
        end

        # Applies the `time` function.
        # @return [self]
        def time
          set_function_and_argument(:time, nil)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
frodo-0.12.8 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.7 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.6 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.5 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.4 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.2 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.1 lib/frodo/query/criteria/date_functions.rb
frodo-0.12.0 lib/frodo/query/criteria/date_functions.rb
frodo-0.11.0 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.8 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.7 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.6 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.5 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.4 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.3 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.2 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.1 lib/frodo/query/criteria/date_functions.rb
frodo-0.10.0 lib/frodo/query/criteria/date_functions.rb