oivoodoo/mongoid-report

View on GitHub
lib/mongoid/report/input.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Mongoid
  module Report

    class Input
      attr_accessor :collection_name

      def present?
        collection_name.present?
      end

      def collection
        @collection ||= Mongoid::Report::Collections.get(collection_name)
      end
    end

  end
end