Sha256: 551752fc8fb1664d47297312f8f5b5e76ab868bfdd5e2c32292a99242f1417c8
Contents?: true
Size: 864 Bytes
Versions: 3
Compression:
Stored size: 864 Bytes
Contents
# frozen_string_literal: true require_relative "../base" module Bitly module API class Bitlink class ClicksSummary include Base def self.fetch(client:, bitlink:, unit: nil, units: nil, unit_reference: nil, size: nil) response = client.request( path: "/bitlinks/#{bitlink}/clicks/summary", params: { "unit" => nil, "units" => nil, "unit_reference" => nil, "size" => nil } ) new(data: response.body, response: response) end def self.attributes [:units, :unit, :unit_reference, :total_clicks] end attr_reader(*attributes) def initialize(data:, response: nil) assign_attributes(data) @response = response end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bitly-2.0.0 | lib/bitly/api/bitlink/clicks_summary.rb |
bitly-2.0.0.beta.2 | lib/bitly/api/bitlink/clicks_summary.rb |
bitly-2.0.0.beta.1 | lib/bitly/api/bitlink/clicks_summary.rb |