module
Amazonite::Core::XMLValue
Overview
Scalar (de)serialization helpers for the awsQuery protocol's generated
to_query_params/from_xml model methods - the query wire format encodes
every scalar as plain text (form value or XML element content), so these
just centralize the text <-> Crystal-type conversion for the handful of
non-String primitive types (JSON has its own separate converters in
converters.cr, since its wire representation differs, e.g. numbers/bools
aren't quoted text there).
Defined in:
core/xml_converters.crClass Method Summary
- .bool(node : XML::Node | Nil) : Bool | Nil
- .bytes(node : XML::Node | Nil) : Bytes | Nil
- .f32(node : XML::Node | Nil) : Float32 | Nil
- .f64(node : XML::Node | Nil) : Float64 | Nil
- .i32(node : XML::Node | Nil) : Int32 | Nil
- .i64(node : XML::Node | Nil) : Int64 | Nil
- .string(node : XML::Node | Nil) : String | Nil
- .time(node : XML::Node | Nil) : Time | Nil