class Bookwatch::Config::ProductConfig
Constants
- CONFIG_REQUIRED_KEYS
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/bookwatch/config/product_config.rb, line 4 def initialize(config) @config = config end
Public Instance Methods
id()
click to toggle source
# File lib/bookwatch/config/product_config.rb, line 8 def id config['id'] end
Also aliased as: subnav_name
pdf_config()
click to toggle source
# File lib/bookwatch/config/product_config.rb, line 12 def pdf_config config['pdf_config'] end
valid?()
click to toggle source
# File lib/bookwatch/config/product_config.rb, line 20 def valid? (CONFIG_REQUIRED_KEYS - config.keys).empty? end