Module: FidoMetadata::Coercer::Statement

Defined in:
lib/fido_metadata/coercer/statement.rb

Class Method Summary collapse

Class Method Details

.coerce(value) ⇒ Object



8
9
10
11
12
# File 'lib/fido_metadata/coercer/statement.rb', line 8

def self.coerce(value)
  return value if value.is_a?(::Statement)

  ::Statement.from_json(value) if value
end