Class: ApiSerializer::TypedStruct::AttributeReflection

Inherits:
Data
  • Object
show all
Defined in:
lib/api_serializer/typed_struct.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#coercionObject (readonly)

Returns the value of attribute coercion

Returns:

  • (Object)

    the current value of coercion



5
6
7
# File 'lib/api_serializer/typed_struct.rb', line 5

def coercion
  @coercion
end

#defaultObject (readonly)

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



5
6
7
# File 'lib/api_serializer/typed_struct.rb', line 5

def default
  @default
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/api_serializer/typed_struct.rb', line 5

def name
  @name
end

#positionalObject (readonly)

Returns the value of attribute positional

Returns:

  • (Object)

    the current value of positional



5
6
7
# File 'lib/api_serializer/typed_struct.rb', line 5

def positional
  @positional
end

#readerObject (readonly)

Returns the value of attribute reader

Returns:

  • (Object)

    the current value of reader



5
6
7
# File 'lib/api_serializer/typed_struct.rb', line 5

def reader
  @reader
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of 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)