module GMO::PG::Payload::Typecast
Public Class Methods
detect(typecast_option)
click to toggle source
# File lib/gmo-pg/http_resource/payload/typecast.rb, line 5 def self.detect(typecast_option) case typecast_option when /\Ainteger\z/ then TypecastableInteger when /\Aepoch_time\Z/ then TypecastableEpochTime when Hash then TypecastableValue.from_hash(typecast_option) else TypecastableValue end end