Module: DataKitten::Hosts::Github
- Defined in:
- lib/data_kitten/hosts/github.rb
Overview
GitHub host module. Automatically mixed into Dataset for datasets that are loaded from GitHub.
Instance Method Summary collapse
-
#github_path(path = '') ⇒ String
Helper for generating GitHub URLs.
-
#host ⇒ Symbol
Where the dataset is hosted.
Instance Method Details
#github_path(path = '') ⇒ String
Helper for generating GitHub URLs
36 37 38 |
# File 'lib/data_kitten/hosts/github.rb', line 36 def github_path(path = '') "https://github.com/#{github_user_name}/#{github_repository_name}/#{path}" end |
#host ⇒ Symbol
Where the dataset is hosted.
22 23 24 |
# File 'lib/data_kitten/hosts/github.rb', line 22 def host :github end |