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