Class: SolidusFeeds::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_feeds/configuration.rb

Instance Method Summary collapse

Instance Method Details

#find(name) ⇒ Object



15
16
17
# File 'lib/solidus_feeds/configuration.rb', line 15

def find(name)
  feeds.fetch(name)
end

#register(name, &builder) ⇒ Object

Define here the settings for this extensions, e.g.:

attr_accessor :my_setting



11
12
13
# File 'lib/solidus_feeds/configuration.rb', line 11

def register(name, &builder)
  feeds[name.to_sym] = Feed.new(&builder)
end