Sha256: 77515474a591c8d097691d21a6adb4cf97a045e187f65ae4d48a29c267b7aa72

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

o:$YARD::CodeObjects::MethodObject:@docstringIC:YARD::Docstring"
:@objectu:YARD::StubProxy(Topsy::Client#get_rate_limit_status:
@tags[:	@all":@line_range0:@ref_tags[:@parameters[["
response0:@namespaceu;	Topsy::Client:@source_type:	ruby;
[:@explicitT:
@name:get_rate_limit_status:@visibility:private:@current_file_has_commentsF:@signature"ddef get_rate_limit_status(response)
        headers = {
          'limit' => response.headers['x-ratelimit-limit'].first.to_i,
          'remaining' => response.headers['x-ratelimit-remaining'].first.to_i,
          'reset' => response.headers['x-ratelimit-reset'].first.to_i
        }
        Topsy.rate_limit = Topsy::RateLimitInfo.new(headers)
      end:@scope:
instance:@files[["lib/topsy/client.rbiÅ:
@lineiÅ:@source":def get_rate_limit_status(response)
  headers = {
    'limit' => response.headers['x-ratelimit-limit'].first.to_i,
    'remaining' => response.headers['x-ratelimit-remaining'].first.to_i,
    'reset' => response.headers['x-ratelimit-reset'].first.to_i
  }
  Topsy.rate_limit = Topsy::RateLimitInfo.new(headers)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
topsy-0.2.0 .yardoc/objects/Topsy/Client/get_rate_limit_status_i.dat