Sha256: d9e77db805ac085a7933e4e6603a7cbd4c047de48b296a8707e68bc498e931b8
Contents?: true
Size: 431 Bytes
Versions: 14
Compression:
Stored size: 431 Bytes
Contents
module Shamu module JsonApi module BuilderMethods module Meta # Add a meta field. # @param [String,Symbol] name of the meta field. # @param [Object] vlaue that can be converted to a JSON primitive type. # @return [self] def meta( name, value ) meta = ( output[:meta] ||= {} ) meta[ name.to_sym ] = value self end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems