Module: Wrest::Components::Container::Typecaster::Helpers

Defined in:
lib/wrest/components/container/typecaster.rb

Instance Method Summary collapse

Instance Method Details

#as_base64BinaryObject



31
32
33
# File 'lib/wrest/components/container/typecaster.rb', line 31

def as_base64Binary
  ActiveSupport::XmlMini::PARSING['base64Binary']
end

#as_booleanObject



35
36
37
# File 'lib/wrest/components/container/typecaster.rb', line 35

def as_boolean
  ActiveSupport::XmlMini::PARSING['boolean']
end

#as_dateObject



43
44
45
# File 'lib/wrest/components/container/typecaster.rb', line 43

def as_date
  ActiveSupport::XmlMini::PARSING['date']
end

#as_datetimeObject



47
48
49
# File 'lib/wrest/components/container/typecaster.rb', line 47

def as_datetime
  ActiveSupport::XmlMini::PARSING['datetime']
end

#as_decimalObject



39
40
41
# File 'lib/wrest/components/container/typecaster.rb', line 39

def as_decimal
  ActiveSupport::XmlMini::PARSING['decimal']
end

#as_floatObject



51
52
53
# File 'lib/wrest/components/container/typecaster.rb', line 51

def as_float
  ActiveSupport::XmlMini::PARSING['float']
end

#as_integerObject



55
56
57
# File 'lib/wrest/components/container/typecaster.rb', line 55

def as_integer
  ActiveSupport::XmlMini::PARSING['integer']
end

#as_symbolObject



59
60
61
# File 'lib/wrest/components/container/typecaster.rb', line 59

def as_symbol
  ActiveSupport::XmlMini::PARSING['symbol']
end

#as_yamlObject



63
64
65
# File 'lib/wrest/components/container/typecaster.rb', line 63

def as_yaml
  ActiveSupport::XmlMini::PARSING['yaml']
end