Class: IMS::LTI::Converters::TimeJSONConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/ims/lti/converters/time_json_converter.rb

Class Method Summary collapse

Class Method Details

.from_json_value(json_val) ⇒ Object



8
9
10
# File 'lib/ims/lti/converters/time_json_converter.rb', line 8

def self.from_json_value(json_val)
  Time.parse(json_val)
end

.to_json_value(time) ⇒ Object



4
5
6
# File 'lib/ims/lti/converters/time_json_converter.rb', line 4

def self.to_json_value(time)
  time
end