Class: Rails::On::Sorbet::ActiveRecordSerializer::Definition
- Inherits:
-
Object
- Object
- Rails::On::Sorbet::ActiveRecordSerializer::Definition
- Defined in:
- lib/rails/on/sorbet/active_record_serializer.rb
Overview
Contains the data of a serializer definition
Instance Attribute Summary collapse
-
#coder ⇒ Object
readonly
: untyped.
-
#doc ⇒ Object
readonly
: String?.
-
#name ⇒ Object
readonly
: Symbol.
-
#return_type ⇒ Object
readonly
: Object.
-
#setter_type ⇒ Object
readonly
: Object.
Instance Method Summary collapse
-
#initialize(name:, coder:, return_type: nil, setter_type: nil, doc: nil) ⇒ Definition
constructor
: (name: Symbol, coder: untyped, ?return_type: untyped, ?setter_type: untyped, ?doc: String?) -> void.
Constructor Details
#initialize(name:, coder:, return_type: nil, setter_type: nil, doc: nil) ⇒ Definition
: (name: Symbol, coder: untyped, ?return_type: untyped, ?setter_type: untyped, ?doc: String?) -> void
21 22 23 24 25 26 27 |
# File 'lib/rails/on/sorbet/active_record_serializer.rb', line 21 def initialize(name:, coder:, return_type: nil, setter_type: nil, doc: nil) @name = name @coder = coder @return_type = return_type @setter_type = setter_type @doc = doc end |
Instance Attribute Details
#coder ⇒ Object (readonly)
: untyped
12 13 14 |
# File 'lib/rails/on/sorbet/active_record_serializer.rb', line 12 def coder @coder end |
#doc ⇒ Object (readonly)
: String?
18 19 20 |
# File 'lib/rails/on/sorbet/active_record_serializer.rb', line 18 def doc @doc end |
#name ⇒ Object (readonly)
: Symbol
10 11 12 |
# File 'lib/rails/on/sorbet/active_record_serializer.rb', line 10 def name @name end |
#return_type ⇒ Object (readonly)
: Object
14 15 16 |
# File 'lib/rails/on/sorbet/active_record_serializer.rb', line 14 def return_type @return_type end |
#setter_type ⇒ Object (readonly)
: Object
16 17 18 |
# File 'lib/rails/on/sorbet/active_record_serializer.rb', line 16 def setter_type @setter_type end |