Class: Prismic::Field
- Inherits:
-
Object
- Object
- Prismic::Field
- Defined in:
- lib/prismic.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#field_type ⇒ Object
Returns the value of attribute field_type.
-
#repeatable ⇒ Object
(also: #repeatable?)
Returns the value of attribute repeatable.
Instance Method Summary collapse
-
#initialize(field_type, default, repeatable = false) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(field_type, default, repeatable = false) ⇒ Field
Returns a new instance of Field.
381 382 383 384 385 |
# File 'lib/prismic.rb', line 381 def initialize(field_type, default, repeatable = false) @field_type = field_type @default = default @repeatable = repeatable end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default.
379 380 381 |
# File 'lib/prismic.rb', line 379 def default @default end |
#field_type ⇒ Object
Returns the value of attribute field_type.
379 380 381 |
# File 'lib/prismic.rb', line 379 def field_type @field_type end |
#repeatable ⇒ Object Also known as: repeatable?
Returns the value of attribute repeatable.
379 380 381 |
# File 'lib/prismic.rb', line 379 def repeatable @repeatable end |