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.cr

Class Method Summary

Class Method Detail

def self.bool(node : XML::Node | Nil) : Bool | Nil #

[View source]
def self.bytes(node : XML::Node | Nil) : Bytes | Nil #

[View source]
def self.f32(node : XML::Node | Nil) : Float32 | Nil #

[View source]
def self.f64(node : XML::Node | Nil) : Float64 | Nil #

[View source]
def self.i32(node : XML::Node | Nil) : Int32 | Nil #

[View source]
def self.i64(node : XML::Node | Nil) : Int64 | Nil #

[View source]
def self.string(node : XML::Node | Nil) : String | Nil #

[View source]
def self.time(node : XML::Node | Nil) : Time | Nil #

[View source]