Module: Fugle::HTTP::API::ClassMethods Private
- Defined in:
- lib/fugle/http/api.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #data_name ⇒ Object private
- #parameters ⇒ Object private
- #params(name, options = {}) ⇒ Object private
- #path(value = nil) ⇒ Object private
- #uri(query = {}) ⇒ Object private
Instance Method Details
#data_name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
66 67 68 |
# File 'lib/fugle/http/api.rb', line 66 def data_name @data_name ||= name.split('::').last.downcase end |
#parameters ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 |
# File 'lib/fugle/http/api.rb', line 49 def parameters @_parameters end |
#params(name, options = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/fugle/http/api.rb', line 43 def params(name, = {}) @_parameters.add(name, ) end |
#path(value = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 38 39 |
# File 'lib/fugle/http/api.rb', line 35 def path(value = nil) return @_path if value.nil? @_path = value end |
#uri(query = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
55 56 57 58 59 60 61 62 |
# File 'lib/fugle/http/api.rb', line 55 def uri(query = {}) uri = URI("#{ENDPOINT}/#{VERSION}/#{path}") uri.query = Query.new( query.merge(apiToken: Fugle.config.api_token), parameters ).to_s uri end |