class Bookbinder::Config::ProductConfig

Constants

CONFIG_REQUIRED_KEYS

Attributes

config[R]

Public Class Methods

new(config) click to toggle source
# File lib/bookbinder/config/product_config.rb, line 4
def initialize(config)
  @config = config
end

Public Instance Methods

id() click to toggle source
# File lib/bookbinder/config/product_config.rb, line 8
def id
  config['id']
end
Also aliased as: subnav_name
pdf_config() click to toggle source
# File lib/bookbinder/config/product_config.rb, line 12
def pdf_config
  config['pdf_config']
end
subnav_name()
Alias for: id
subnav_root() click to toggle source
valid?() click to toggle source
# File lib/bookbinder/config/product_config.rb, line 20
def valid?
  (CONFIG_REQUIRED_KEYS - config.keys).empty?
end