Class: ApiSerializer::TypedStruct::AttributeReflection
- Inherits:
-
Data
- Object
- Data
- ApiSerializer::TypedStruct::AttributeReflection
- Defined in:
- lib/api_serializer/typed_struct.rb
Instance Attribute Summary collapse
-
#coercion ⇒ Object
readonly
Returns the value of attribute coercion.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#positional ⇒ Object
readonly
Returns the value of attribute positional.
-
#reader ⇒ Object
readonly
Returns the value of attribute reader.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#coercion ⇒ Object (readonly)
Returns the value of attribute coercion
5 6 7 |
# File 'lib/api_serializer/typed_struct.rb', line 5 def coercion @coercion end |
#default ⇒ Object (readonly)
Returns the value of attribute default
5 6 7 |
# File 'lib/api_serializer/typed_struct.rb', line 5 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/api_serializer/typed_struct.rb', line 5 def name @name end |
#positional ⇒ Object (readonly)
Returns the value of attribute positional
5 6 7 |
# File 'lib/api_serializer/typed_struct.rb', line 5 def positional @positional end |
#reader ⇒ Object (readonly)
Returns the value of attribute reader
5 6 7 |
# File 'lib/api_serializer/typed_struct.rb', line 5 def reader @reader end |
#type ⇒ Object (readonly)
Returns the value of attribute type
5 6 7 |
# File 'lib/api_serializer/typed_struct.rb', line 5 def type @type end |
Instance Method Details
#[](key) ⇒ Object
6 |
# File 'lib/api_serializer/typed_struct.rb', line 6 def [](key) = send(key) |