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

Ability to set configuration on method call level #1

Closed
EvNomad opened this issue Sep 13, 2018 · 0 comments
Closed

Ability to set configuration on method call level #1

EvNomad opened this issue Sep 13, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@EvNomad
Copy link
Collaborator

EvNomad commented Sep 13, 2018

Currently the take2 configurations are class level.
So in order to implement different set of defaults for two different implementations in same class they must be re-declaired.

I would like to be able to set defaults per method call:

class Service
  include Take2
  
  # use class defaults
  def call
    call_api_with_retry do
      # code ..
    end
  end
  
 # use method defaults
  def perform
    call_api_with_retry(config_hash) do
      # more code..
    end
  end

end 
@EvNomad EvNomad added enhancement New feature or request help wanted Extra attention is needed labels Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant