Sha256: cfb4f972e683bf939261e384a5378e25e6830a97e45cb8fc60c5041f32f54f37
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
module Moblues module Reader class Type def map_type_str(type_str) case type_str when 'String' :string when 'Integer 16', 'Integer 32', 'Integer 64', 'Boolean', 'Float', 'Double' :number when 'Decimal' :decimal when 'Date' :date when 'Binary' :data when 'Transformable' :id else raise ArgumentError.new("unknown type #{type_str}") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | lib/moblues/reader/type.rb |
moblues-0.3.0 | lib/moblues/reader/type.rb |
moblues-0.2.0 | lib/moblues/reader/type.rb |