module HaystackRuby::Types::DateTime
Public Instance Methods
set_fields(str_value)
click to toggle source
# File lib/haystack_ruby/types/date_time.rb, line 4 def set_fields str_value @haystack_type = 'DateTime' match = /\At:(.*)\z/.match str_value begin @value = DateTime.parse match[1] rescue Exception=>e raise HaystackRuby::Error, "invalid HaystackRuby::Types::DateTime #{str_value}. Error #{e}" end end