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

records.config like interface for ATS::Records #52

Open
syucream opened this issue Aug 9, 2016 · 1 comment
Open

records.config like interface for ATS::Records #52

syucream opened this issue Aug 9, 2016 · 1 comment
Milestone

Comments

@syucream
Copy link
Owner

syucream commented Aug 9, 2016

From #32

records = ATS::Records.new

# getter
records.proxy.config.url_remap.pristine_host_hdr #=> 0
records.url_remap.pristine_host_hdr #=> 0
# setter as #= method
records.proxy.config.url_remap.pristine_host_hdr = 1
records.url_remap.pristine_host_hdr = 1
records = ATS::Records.new
records.set do |proxy|
  # records.config like accessor!
  proxy.config.url_remap.pristine_host_hdr = 1
end
@syucream syucream added this to the sometime milestone Aug 9, 2016
@syucream
Copy link
Owner Author

Maybe it can be implemented by method_missing ... ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant