Class: AjaxDatatablesRails::Datatable::Column::DateFilter::DateRange

Inherits:
Object
  • Object
show all
Defined in:
lib/ajax-datatables-rails/datatable/column/date_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date_start, date_end) ⇒ DateRange

Returns a new instance of DateRange.



13
14
15
16
# File 'lib/ajax-datatables-rails/datatable/column/date_filter.rb', line 13

def initialize(date_start, date_end)
  @begin = date_start
  @end   = date_end
end

Instance Attribute Details

#beginObject (readonly)

Returns the value of attribute begin.



11
12
13
# File 'lib/ajax-datatables-rails/datatable/column/date_filter.rb', line 11

def begin
  @begin
end

#endObject (readonly)

Returns the value of attribute end.



11
12
13
# File 'lib/ajax-datatables-rails/datatable/column/date_filter.rb', line 11

def end
  @end
end

Instance Method Details

#exclude_end?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ajax-datatables-rails/datatable/column/date_filter.rb', line 18

def exclude_end?
  false
end