enum OQ::Format

Overview

The support formats that can be converted to/from.

Defined in:

oq.cr

Enum Members

Json = 0
Yaml = 1
Xml = 2

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

to_xml(builder : XML::Builder) : Nil
to_xml(io : IO, *, root : String | Nil, indent : String) : Nil
to_xml(*, root : String = "root", indent : String = " ") : String
to_xml

Class Method Detail

def self.to_s : String #

Returns the list of supported formats.


[View source]

Instance Method Detail

def converter #

Maps a given format to its converter.


[View source]
def json? #

[View source]
def xml? #

[View source]
def yaml? #

[View source]