Class: SOAP::XSD::Convert
- Inherits:
-
Object
- Object
- SOAP::XSD::Convert
- Defined in:
- lib/wsdl-reader/xsd/convert.rb
Class Method Summary collapse
Instance Method Summary collapse
- #c(t, v) ⇒ Object
- #xsd_anyURI(x) ⇒ Object
- #xsd_base64Binary(x) ⇒ Object
- #xsd_boolean(x) ⇒ Object
- #xsd_byte(x) ⇒ Object
- #xsd_date(x) ⇒ Object
- #xsd_dateTime(x) ⇒ Object
- #xsd_duration(x) ⇒ Object
- #xsd_ENTITIES(x) ⇒ Object
- #xsd_ENTITY(x) ⇒ Object
- #xsd_float(x) ⇒ Object (also: #xsd_double, #xsd_decimal)
- #xsd_gDay(x) ⇒ Object
- #xsd_gMonth(x) ⇒ Object
- #xsd_gMonthDay(x) ⇒ Object
- #xsd_gYear(x) ⇒ Object
- #xsd_gYearMonth(x) ⇒ Object
- #xsd_hexBinary(x) ⇒ Object
- #xsd_ID(x) ⇒ Object
- #xsd_IDREF(x) ⇒ Object
- #xsd_IDREFS(x) ⇒ Object
- #xsd_int(x) ⇒ Object (also: #xsd_long, #xsd_integer)
- #xsd_language(x) ⇒ Object
- #xsd_Name(x) ⇒ Object
- #xsd_NCName(x) ⇒ Object
- #xsd_negativeInteger(x) ⇒ Object
- #xsd_NMTOKEN(x) ⇒ Object
- #xsd_NMTOKENS(x) ⇒ Object
- #xsd_nonNegativeInteger(x) ⇒ Object
- #xsd_nonPositiveInteger(x) ⇒ Object
- #xsd_NOTATION(x) ⇒ Object
- #xsd_positiveInteger(x) ⇒ Object
- #xsd_QName(x) ⇒ Object
- #xsd_short(x) ⇒ Object
- #xsd_string(x) ⇒ Object (also: #xsd_normalizedString)
- #xsd_time(x) ⇒ Object
- #xsd_token(x) ⇒ Object
- #xsd_unsignedByte(x) ⇒ Object
- #xsd_unsignedInt(x) ⇒ Object
- #xsd_unsignedLong(x) ⇒ Object
- #xsd_unsignedShort(x) ⇒ Object
Class Method Details
.to_ruby(t, v) ⇒ Object
5 6 7 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 5 def self.to_ruby( t, v ) new().c( t.gsub( /.*:/, "xsd_" ), v ) end |
Instance Method Details
#c(t, v) ⇒ Object
9 10 11 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 9 def c( t, v ) self.method( t ).call( v ) end |
#xsd_anyURI(x) ⇒ Object
67 68 69 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 67 def xsd_anyURI( x ) x end |
#xsd_base64Binary(x) ⇒ Object
61 62 63 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 61 def xsd_base64Binary( x ) x end |
#xsd_boolean(x) ⇒ Object
30 31 32 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 30 def xsd_boolean( x ) (x == "true") end |
#xsd_byte(x) ⇒ Object
130 131 132 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 130 def xsd_byte( x ) x end |
#xsd_date(x) ⇒ Object
43 44 45 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 43 def xsd_date( x ) x end |
#xsd_dateTime(x) ⇒ Object
37 38 39 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 37 def xsd_dateTime( x ) x end |
#xsd_duration(x) ⇒ Object
34 35 36 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 34 def xsd_duration( x ) x end |
#xsd_ENTITIES(x) ⇒ Object
106 107 108 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 106 def xsd_ENTITIES( x ) x end |
#xsd_ENTITY(x) ⇒ Object
100 101 102 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 100 def xsd_ENTITY( x ) x end |
#xsd_float(x) ⇒ Object Also known as: xsd_double, xsd_decimal
19 20 21 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 19 def xsd_float( x ) x.to_f end |
#xsd_gDay(x) ⇒ Object
55 56 57 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 55 def xsd_gDay( x ) x end |
#xsd_gMonth(x) ⇒ Object
58 59 60 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 58 def xsd_gMonth( x ) x end |
#xsd_gMonthDay(x) ⇒ Object
52 53 54 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 52 def xsd_gMonthDay( x ) x end |
#xsd_gYear(x) ⇒ Object
49 50 51 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 49 def xsd_gYear( x ) x end |
#xsd_gYearMonth(x) ⇒ Object
46 47 48 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 46 def xsd_gYearMonth( x ) x end |
#xsd_hexBinary(x) ⇒ Object
64 65 66 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 64 def xsd_hexBinary( x ) x end |
#xsd_ID(x) ⇒ Object
94 95 96 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 94 def xsd_ID( x ) x end |
#xsd_IDREF(x) ⇒ Object
97 98 99 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 97 def xsd_IDREF( x ) x end |
#xsd_IDREFS(x) ⇒ Object
103 104 105 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 103 def xsd_IDREFS( x ) x end |
#xsd_int(x) ⇒ Object Also known as: xsd_long, xsd_integer
13 14 15 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 13 def xsd_int( x ) x.to_i end |
#xsd_language(x) ⇒ Object
79 80 81 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 79 def xsd_language( x ) x end |
#xsd_Name(x) ⇒ Object
82 83 84 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 82 def xsd_Name( x ) x end |
#xsd_NCName(x) ⇒ Object
88 89 90 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 88 def xsd_NCName( x ) x end |
#xsd_negativeInteger(x) ⇒ Object
115 116 117 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 115 def xsd_negativeInteger( x ) x end |
#xsd_NMTOKEN(x) ⇒ Object
85 86 87 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 85 def xsd_NMTOKEN( x ) x end |
#xsd_NMTOKENS(x) ⇒ Object
91 92 93 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 91 def xsd_NMTOKENS( x ) x end |
#xsd_nonNegativeInteger(x) ⇒ Object
112 113 114 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 112 def xsd_nonNegativeInteger( x ) x end |
#xsd_nonPositiveInteger(x) ⇒ Object
109 110 111 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 109 def xsd_nonPositiveInteger( x ) x end |
#xsd_NOTATION(x) ⇒ Object
73 74 75 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 73 def xsd_NOTATION( x ) x end |
#xsd_positiveInteger(x) ⇒ Object
121 122 123 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 121 def xsd_positiveInteger( x ) x end |
#xsd_QName(x) ⇒ Object
70 71 72 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 70 def xsd_QName( x ) x end |
#xsd_short(x) ⇒ Object
124 125 126 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 124 def xsd_short( x ) x end |
#xsd_string(x) ⇒ Object Also known as: xsd_normalizedString
25 26 27 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 25 def xsd_string( x ) x end |
#xsd_time(x) ⇒ Object
40 41 42 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 40 def xsd_time( x ) x end |
#xsd_token(x) ⇒ Object
76 77 78 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 76 def xsd_token( x ) x end |
#xsd_unsignedByte(x) ⇒ Object
136 137 138 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 136 def xsd_unsignedByte( x ) x end |
#xsd_unsignedInt(x) ⇒ Object
127 128 129 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 127 def xsd_unsignedInt( x ) x end |
#xsd_unsignedLong(x) ⇒ Object
118 119 120 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 118 def xsd_unsignedLong( x ) x end |
#xsd_unsignedShort(x) ⇒ Object
133 134 135 |
# File 'lib/wsdl-reader/xsd/convert.rb', line 133 def xsd_unsignedShort( x ) x end |