Method: ApiResource::Serializer#initialize
- Defined in:
- lib/api_resource/serializer.rb
#initialize(record, options = {}) ⇒ Serializer
Constructor
explicitly exclude Associations to explicitly include Attributes to explicitly include the primary key to include attributes that are blank/nil in the serialized hash
36 37 38 39 |
# File 'lib/api_resource/serializer.rb', line 36 def initialize(record, = {}) @record = record = .with_indifferent_access end |