class RequestBase

Attributes

http_helper[RW]
query_params[RW]

Public Class Methods

new(api_key, access_token) click to toggle source
# File lib/RequestBase.rb, line 7
def initialize(api_key, access_token)
        
        #puts "here is my token #{access_token}"
        @http_helper = HttpHelper.new(api_key, access_token)                                          
        @query_params = Hash.new

end

Protected Instance Methods

build_query_params(key, value) click to toggle source
# File lib/RequestBase.rb, line 16
def build_query_params(key, value)
        @query_params[key].nil? ? @query_params[key] = value : @query_params[key] << "," + value
end