Class: TinyDyno::Fields::RangeKey
- Inherits:
-
Object
- Object
- TinyDyno::Fields::RangeKey
- Defined in:
- lib/tiny_dyno/fields/range_key.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 = {}) ⇒ RangeKey
constructor
Create the new field with a name and optional additional options.
Constructor Details
#initialize(name, options = {}) ⇒ RangeKey
Create the new field with a name and optional additional options.
21 22 23 24 25 26 27 |
# File 'lib/tiny_dyno/fields/range_key.rb', line 21 def initialize(name, = {}) @name = name @options = .merge(range_key: true) @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.
7 8 9 |
# File 'lib/tiny_dyno/fields/range_key.rb', line 7 def default_val @default_val end |
#label ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
7 8 9 |
# File 'lib/tiny_dyno/fields/range_key.rb', line 7 def label @label end |
#name ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
7 8 9 |
# File 'lib/tiny_dyno/fields/range_key.rb', line 7 def name @name end |
#options ⇒ Object
Defines the behaviour for defined fields in the document. Set readers for the instance variables.
7 8 9 |
# File 'lib/tiny_dyno/fields/range_key.rb', line 7 def @options end |