Class: Jcsv::RBParseRFC3339

Inherits:
Filter
  • Object
show all
Defined in:
lib/date_filters.rb

Overview

Instance Attribute Summary

Attributes included from NextFilter

#last_filter, #next_filter

Instance Method Summary collapse

Methods included from NextFilter

#>>, #exec_next

Constructor Details

#initialize(start) ⇒ RBParseRFC3339

Returns a new instance of RBParseRFC3339.



140
141
142
143
# File 'lib/date_filters.rb', line 140

def initialize(start)
  @start = start
  super()
end

Instance Method Details

#execute(value, context) ⇒ Object



145
146
147
148
# File 'lib/date_filters.rb', line 145

def execute(value, context)
  validateInputNotNull(value, context)
  exec_next(DateTime.rfc3339(value, @start), context)
end