Module: NRB::Untappd
- Defined in:
- lib/drink-socially.rb,
lib/drink-socially/api.rb,
lib/drink-socially/config.rb,
lib/drink-socially/version.rb,
lib/drink-socially/api/object.rb,
lib/drink-socially/api/credential.rb,
lib/drink-socially/api/pagination.rb,
lib/drink-socially/api/rate_limit.rb,
lib/drink-socially/api/notification.rb,
lib/drink-socially/api/url_tokenizer.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.0.5'
Class Attribute Summary collapse
-
.http_service ⇒ Object
Returns the value of attribute http_service.
Class Method Summary collapse
- .config_file_path(key) ⇒ Object
- .load_config(args) ⇒ Object
- .make_request(args) ⇒ Object
- .version ⇒ Object
Class Attribute Details
.http_service ⇒ Object
Returns the value of attribute http_service.
13 14 15 |
# File 'lib/drink-socially.rb', line 13 def http_service @http_service end |
Class Method Details
.config_file_path(key) ⇒ Object
15 16 17 18 |
# File 'lib/drink-socially.rb', line 15 def config_file_path(key) return key if File.absolute_path(key) == key File.( File.join( config_dir, key ) ) end |
.load_config(args) ⇒ Object
21 22 23 24 25 |
# File 'lib/drink-socially.rb', line 21 def load_config(args) reader = args.delete(:config_reader) || Config !! args[:filekey] && args[:filename] = config_file_path(args.delete(:filekey)) reader.new(args) end |
.make_request(args) ⇒ Object
28 29 30 |
# File 'lib/drink-socially.rb', line 28 def make_request(args) http_service.make_request args end |
.version ⇒ Object
4 5 6 |
# File 'lib/drink-socially/version.rb', line 4 def self.version VERSION end |