Class: GatherContent::Config::Element::Files

Inherits:
Base
  • Object
show all
Defined in:
lib/gather_content/config/elements/files.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#label, #microcopy, #name, #required

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_json

Constructor Details

This class inherits a constructor from GatherContent::Config::Element::Base

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/gather_content/config/elements/files.rb', line 7

def options
  @options
end

Instance Method Details

#serialize(options = nil) ⇒ Object



9
10
11
12
13
# File 'lib/gather_content/config/elements/files.rb', line 9

def serialize(options = nil)
  super.merge({
    type: 'files'
  })
end