Class: Coercible::Coercer::String

Inherits:
Object
  • Object
show all
Defined in:
lib/gfycat/patches/timestamp_coercion.rb

Instance Method Summary collapse

Instance Method Details

#parse_value(parser, value, method) ⇒ Object



5
6
7
8
9
# File 'lib/gfycat/patches/timestamp_coercion.rb', line 5

def parse_value(parser, value, method)
  parser.strptime(value, "%s")
rescue ArgumentError
  raise_unsupported_coercion(value, method)
end