Returns propreties to serialize based on :only or :exclude arrays, if provided :only takes precendence over :exclude
@return <Array> properties that need to be serialized
Serialize a Resource to comma-separated values (CSV).
@return <String> a CSV representation of the Resource
Serialize a Resource to JavaScript Object Notation (JSON; RFC 4627)
@return <String> a JSON representation of the Resource
Serialize a Resource to XML
@return <REXML::Document> an XML representation of this Resource
Serialize a Resource to YAML
@return <YAML> a YAML representation of this Resource