Sha256: c99bd6bf8cd912bd22dc4c50adb473127af665c145d8ee44b316d64ef2e9a926
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require 'albacore/albacoremodel' module NCover class ReportFilterBase include AlbacoreModel attr_accessor :filter, :filter_type, :item_type, :is_regex def initialize(item_type, params={}) @filter = "" @item_type = item_type @is_regex = false @filter_type = :exclude update_attributes(params) unless params.nil? super() end def get_filter_options filter = "\"#{@filter}\"" filter << ":#{@item_type}" filter << ":#{@is_regex}" filter << ":#{(@filter_type == :include)}" filter end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.2.0.preview1 | lib/albacore/ncoverreports/reportfilterbase.rb |