Class: RESTFramework::BaseSerializer
- Inherits:
-
Object
- Object
- RESTFramework::BaseSerializer
- Defined in:
- lib/rest_framework/serializers.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(object: nil, data: nil, controller: nil, **kwargs) ⇒ BaseSerializer
constructor
A new instance of BaseSerializer.
Constructor Details
#initialize(object: nil, data: nil, controller: nil, **kwargs) ⇒ BaseSerializer
Returns a new instance of BaseSerializer.
5 6 7 8 9 |
# File 'lib/rest_framework/serializers.rb', line 5 def initialize(object: nil, data: nil, controller: nil, **kwargs) @object = object @data = data @controller = controller end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/rest_framework/serializers.rb', line 3 def errors @errors end |