class Magiq::Types::ID
Public Instance Methods
cast!()
click to toggle source
# File lib/magiq/types.rb, line 82 def cast! v = raw.to_i if v > 0 v else bad! "provided value of #{raw.inspect} is not permitted, it must " \ "be a numerical ID greater than zero." end end