Class: RESTFramework::BaseSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/rest_framework/serializers.rb

Direct Known Subclasses

NativeSerializer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object: nil, controller: nil, **kwargs) ⇒ BaseSerializer

Returns a new instance of BaseSerializer.



4
5
6
7
# File 'lib/rest_framework/serializers.rb', line 4

def initialize(object: nil, controller: nil, **kwargs)
  @object = object
  @controller = controller
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



2
3
4
# File 'lib/rest_framework/serializers.rb', line 2

def errors
  @errors
end