Sha256: ac43e6743872dbc03583af48ca7a8f129e9e930f7c549a8784d4554ec07dfd07

Contents?: true

Size: 1010 Bytes

Versions: 3

Compression:

Stored size: 1010 Bytes

Contents

module KirguduBase
	class DynamicPages::ManagementSettingsBuilder < ::KirguduBase::DynamicPages::Builder


		def initialize(name, &block)
			self.builder_options[:item_class] = nil
			self.builder_options[:container_class] = nil
			self.builder_options[:entry_class] = nil
			self.builder_options[:container_id_property] = nil
			self.builder_options[:entry_id_property] = nil

			self.builder_options[:name] = name

			super(&block)

		end

		def item_class(value)
			self.builder_options[:item_class] = value
		end

		def container_class(value)
			self.builder_options[:container_class] = value
		end

		def entry_class(value)
			self.builder_options[:entry_class] = value
		end

		def container_id_property(value)
			self.builder_options[:container_id_property] = value
		end

		def entry_id_property(value)
			self.builder_options[:entry_id_property] = value
		end


		def to_element
			element = ::KirguduBase::DynamicPages::ManagementSettings.new
			self.build_element(element)
			element
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kirgudu_base-0.0.25 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.23 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.22 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb