Sha256: 13be404924a1c7bf386ce0db0990f5d8fcabaace15d2750e5c30fbf63206e1cf

Contents?: true

Size: 268 Bytes

Versions: 3

Compression:

Stored size: 268 Bytes

Contents

module OData
  class DateTimeOffsetType < PrimitiveType
    def valid_value?(value)
      DateTime === value || Time === value
    end

    def coerce(value)
      DateTime.parse(value)
    end

    def name
      "Edm.DateTimeOffset"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
microsoft_graph-0.1.3 lib/odata/types/primitive_types/date_time_offset_type.rb
microsoft_graph-0.1.1 lib/odata/types/primitive_types/date_time_offset_type.rb
microsoft_graph-0.1.0 lib/odata/types/primitive_types/date_time_offset_type.rb