Sha256: 77d6c157a702608856a9a8ba3b56ff7895fe32ac8046460937d997a8d2135f59

Contents?: true

Size: 1.03 KB

Versions: 17

Compression:

Stored size: 1.03 KB

Contents

module KirguduBase
	module DynamicPages
		class 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
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
kirgudu_base-0.0.21 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.19 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.18 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.17 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.16 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.15 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.14 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.13 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.12 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.11 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.10 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.9 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.8 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.7 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.6 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.5 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb
kirgudu_base-0.0.4 app/models/kirgudu_base/dynamic_pages/management_settings_builder.rb