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

Find page name the video is from #48

Closed
wants to merge 1 commit into from

Conversation

kangkyu
Copy link
Contributor

@kangkyu kangkyu commented Jun 22, 2016

Funky::Video.where(id: '203203106739575').first.page_name
# => "This Is Us"

close #46

@@ -40,6 +40,11 @@ def picture
data[:picture]
end

# @return [String] the name of Facebook page for the video.
def page_name
data.dig(:from, :name)

Choose a reason for hiding this comment

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

This is 🆗

However this method has been added to recent versions of Ruby, so if we go with this code, we should add the required Ruby version both to the README and to the .gemspec file.

@philipqnguyen Are you okay with not supporting older versions of Ruby?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should fetch?

Copy link
Contributor Author

@kangkyu kangkyu Jun 22, 2016

Choose a reason for hiding this comment

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

I'll make a new PR from "not fork" (because travis..) and fix that too (use instead fetch)

Choose a reason for hiding this comment

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

It's up to you 🎱

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.5%) to 95.472% when pulling 401a139 on kangkyu:title_where into e421f8f on Fullscreen:master.

@kangkyu kangkyu closed this Jun 22, 2016
@kangkyu kangkyu deleted the title_where branch June 22, 2016 17:41
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

Successfully merging this pull request may close these issues.

Return the name of the Facebook page for each video
4 participants