struct Oq::Processor

Defined in:

oq.cr

Constructors

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

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def args : Array(String) #

The args passed to the program.

Non oq args are just passed to jq.


[View source]
def args=(args : Array(String)) #

The args passed to the program.

Non oq args are just passed to jq.


[View source]
def indent : Int32 #

The number of spaces to use for indentation.


[View source]
def indent=(indent : Int32) #

The number of spaces to use for indentation.


[View source]
def initialize #

[View source]
def input_format : Format #

The format that the input data is in.


[View source]
def input_format=(input_format : Format) #

The format that the input data is in.


[View source]
def output_format : Format #

The format that the output should be transcoded into.


[View source]
def output_format=(output_format : Format) #

The format that the output should be transcoded into.


[View source]
def process #

Consume the input, convert the input to JSON if needed, pass the input/args to jq, then convert the output if needed.


[View source]
def xml_root : String #

The root of the XML document when transcoding to XML.


[View source]
def xml_root=(xml_root : String) #

The root of the XML document when transcoding to XML.


[View source]