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
      367 368 369 370 371  | 
    
      # File 'lib/prismic.rb', line 367 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
      365 366 367  | 
    
      # File 'lib/prismic.rb', line 365 def default @default end  | 
  
#field_type ⇒ Object
Returns the value of attribute field_type
      365 366 367  | 
    
      # File 'lib/prismic.rb', line 365 def field_type @field_type end  | 
  
#repeatable ⇒ Object Also known as: repeatable?
Returns the value of attribute repeatable
      365 366 367  | 
    
      # File 'lib/prismic.rb', line 365 def repeatable @repeatable end  |