Sha256: 6764fe6cd069e158e44a72a339b4ca70f1a43cabe05ad3a88ebcb93d7031a89b
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
module Twitch class Response attr_reader :data, :pagination, :rate_limit, :rate_limit_remaining, :rate_limit_resets_at def initialize(data, rate_limit_headers, pagination = nil) @data = data @rate_limit = rate_limit_headers[:limit].to_i @rate_limit_remaining = rate_limit_headers[:remaining].to_i @rate_limit_resets_at = Time.at(rate_limit_headers[:reset].to_i) @pagination = pagination end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitch-api-0.1.0 | lib/twitch/response.rb |