Class: JsonApiClient::Schema::Types::Time

Inherits:
Object
  • Object
show all
Defined in:
lib/json_api_client/schema.rb

Class Method Summary collapse

Class Method Details

.cast(value, _) ⇒ Object



25
26
27
# File 'lib/json_api_client/schema.rb', line 25

def self.cast(value, _)
  value.is_a?(::Time) ? value : ::Time.parse(value)
end