Class: TinyDyno::Fields::Standard
- Inherits:
-
Object
- Object
- TinyDyno::Fields::Standard
- Defined in:
- lib/tiny_dyno/fields/standard.rb
Instance Attribute Summary collapse
-
#default_val ⇒ Object
Defines the behaviour for defined fields in the document.
-
#label ⇒ Object
Defines the behaviour for defined fields in the document.
-
#name ⇒ Object
Defines the behaviour for defined fields in the document.
-
#options ⇒ Object
Defines the behaviour for defined fields in the document.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Standard
constructor
Create the new field with a name and optional additional options.
Constructor Details
#initialize(name, options = {}) ⇒ Standard
Create the new field with a name and optional additional options.
22 23 24 25 26 27 28 |
# File 'lib/tiny_dyno/fields/standard.rb', line 22 def initialize(name, = {}) @name = name @options = @label = [:label] @default_val = [:default] @type = [:type] end |
Instance Attribute Details
#default_val ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
8 9 10 |
# File 'lib/tiny_dyno/fields/standard.rb', line 8 def default_val @default_val end |
#label ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
8 9 10 |
# File 'lib/tiny_dyno/fields/standard.rb', line 8 def label @label end |
#name ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
8 9 10 |
# File 'lib/tiny_dyno/fields/standard.rb', line 8 def name @name end |
#options ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
8 9 10 |
# File 'lib/tiny_dyno/fields/standard.rb', line 8 def @options end |