Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration #63

Closed
rileyr opened this issue Mar 6, 2016 · 0 comments
Closed

Configuration #63

rileyr opened this issue Mar 6, 2016 · 0 comments

Comments

@rileyr
Copy link

rileyr commented Mar 6, 2016

In working on #58, I would like to be able to pass in configuration values for Infoboxer. Cache configuration values would be things like strategy and expiration. It seems as though Infoboxer.user_agent= is also a configuration value.

Something like:

Infoboxer.configure do |c|
  c.add_option :user_agent, "my_user_agent"
  c.add_option :cache_strategy, :yaml
  c.add_option :cache_directory, "path/to/my/cache"
  c.add_option :cache_minute_duration, 60 * 24
end

The configuration interface in the attached PR is defined as above.

@rileyr rileyr mentioned this issue Mar 6, 2016
@rileyr rileyr closed this as completed Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant