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



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

def index
  @index
end

#nameObject

Returns the value of attribute name



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

def name
  @name
end

#nullObject

Returns the value of attribute null



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

def null
  @null
end

#optionsObject

Returns the value of attribute options



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

def options
  @options
end

#typeObject

Returns the value of attribute type



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

def type
  @type
end