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

Rename Dnsimple.Record to Dnsimple.ZoneRecord #18

Closed
aeden opened this issue Jun 13, 2016 · 6 comments · Fixed by #20
Closed

Rename Dnsimple.Record to Dnsimple.ZoneRecord #18

aeden opened this issue Jun 13, 2016 · 6 comments · Fixed by #20

Comments

@aeden
Copy link
Member

aeden commented Jun 13, 2016

To match the go and ruby clients.

@jacegu
Copy link
Contributor

jacegu commented Jun 25, 2016

In the Ruby client it is called Record too. However in the Go client it's called ZoneRecord.

@aeden @weppos @jodosha which one should we use?

@aeden
Copy link
Member Author

aeden commented Jun 25, 2016

My understanding is @weppos is considering the Go client to be the reference implementation, but he'll need to confirm.

@weppos
Copy link
Member

weppos commented Jun 25, 2016

It was originally called Record in the Go client as well, but it was renamed as part of the shift to V2. I should have renamed the Ruby client as well (actually I believe we talked about that and I assumed it was done).

Both the Ruby and the Go client are kind of reference, but the Go one is generally a little bit more accurate as it's the one I've been spending most time on and was almost rewritten from 0. Moreover, Go is a more strict language, and some decisions were influenced by the Go client because it was the hardest to please so far.

I vote to rename both the Ruby and Elixir client to ZoneRecord.

@weppos
Copy link
Member

weppos commented Jun 25, 2016

PS. Here's the relevant commit dnsimple/dnsimple-go@ef7339c

@jacegu
Copy link
Contributor

jacegu commented Jun 25, 2016

Does that mean that we should have a different data structure (or object) for records in other contexts (e.g templates) ?

EDIT: looks like that's the followed approach Ruby client: https://github.com/aetrion/dnsimple-ruby/blob/master/lib/dnsimple/struct/template_record.rb

@weppos
Copy link
Member

weppos commented Jun 25, 2016

Does that mean that we should have a different data structure (or object) for records in other contexts (e.g templates) ?

That's correct, it has always been like this. We always had Record vs TemplateRecord (which was one of the reason why I wanted to be more explicit on the name).

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

Successfully merging a pull request may close this issue.

3 participants