Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Move Client @connection to its own, independent method#7

Merged
zph merged 2 commits intobufferapp:masterfrom
vierarb:master
Dec 23, 2018
Merged

Move Client @connection to its own, independent method#7
zph merged 2 commits intobufferapp:masterfrom
vierarb:master

Conversation

@vierarb
Copy link
Copy Markdown

@vierarb vierarb commented Dec 21, 2018

No description provided.

Copy link
Copy Markdown

@zph zph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. Thanks for the PR 👍 .

I left a question about the use case for attr_accessor :connection and will be happy to merge once that's answered/tweaked.

Comment thread lib/buffer/client.rb Outdated
include Info

attr_accessor :access_token
attr_accessor :access_token, :connection
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this attr_accessor when also defining the connection method? Do you have a use case that requires assigning into @connection?

If that's the case, please revise this to be attr_writer :connection

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it's not necessary

@zph
Copy link
Copy Markdown

zph commented Dec 23, 2018

Looks good. Thanks!

@zph zph merged commit bf9283d into bufferapp:master Dec 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants