Class: RailsFields::DeclaredField

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_fields/class_methods.rb

Overview

Lightweight, typed container for field declarations Include :options to maintain compatibility with code that reads it

Instance Attribute Summary collapse

Instance Attribute Details

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



4
5
6
# File 'lib/rails_fields/class_methods.rb', line 4

def index
  @index
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/rails_fields/class_methods.rb', line 4

def name
  @name
end

#nullObject

Returns the value of attribute null

Returns:

  • (Object)

    the current value of null



4
5
6
# File 'lib/rails_fields/class_methods.rb', line 4

def null
  @null
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/rails_fields/class_methods.rb', line 4

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/rails_fields/class_methods.rb', line 4

def type
  @type
end