Sha256: 3b16df0fc3c4e79654f20ee7c3ab8f88c568203d8c1cfe587c7cd9f976065174
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
module Instagram class Client # @private module Utils # Returns the raw full response including all headers. Can be used to access the values for 'X-Ratelimit-Limit' and 'X-Ratelimit-Remaining' # ==== Examples # # client = Instagram.client(:access_token => session[:access_token]) # response = client.utils_raw_response # remaining = response.headers[:x_ratelimit_remaining] # limit = response.headers[:x_ratelimit_limit] # def utils_raw_response response = get('users/self/feed',nil,true) response end private # Returns the configured user name or the user name of the authenticated user # # @return [String] def get_username @user_name ||= self.user.username end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
instagram-1.1.1 | lib/instagram/client/utils.rb |
instagram-1.1.0 | lib/instagram/client/utils.rb |
instagram-1.0.0 | lib/instagram/client/utils.rb |