Sha256: ad6d3880664a8bd29109de7a50807914aa0eaeee7b3e815ecae6edfb55ed0c07

Contents?: true

Size: 482 Bytes

Versions: 18

Compression:

Stored size: 482 Bytes

Contents

module Bitly
  module V3
    # Day objects are created by the realtime_links method of a user
    class RealtimeLink
      attr_reader :clicks, :user_hash
    
      def initialize(opts)
        @clicks = opts['clicks']
        @user_hash = opts['user_hash']
      end
    
      # A convenience method to create a Bitly::Url from the data
      def create_url(client)
        Bitly::V3::Url.new(client, 'user_clicks' => clicks, 'user_hash' => user_hash)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bitly-1.1.2 lib/bitly/v3/realtime_link.rb
bitly-1.1.1 lib/bitly/v3/realtime_link.rb
bitly-1.1.0 lib/bitly/v3/realtime_link.rb
bitly-1.0.2 lib/bitly/v3/realtime_link.rb
bitly-1.0.1 lib/bitly/v3/realtime_link.rb
bitly-1.0.0 lib/bitly/v3/realtime_link.rb
bitly-0.10.4 lib/bitly/v3/realtime_link.rb
bitly-0.10.3 lib/bitly/v3/realtime_link.rb
bitly-0.10.2 lib/bitly/v3/realtime_link.rb
bitly-0.10.1 lib/bitly/v3/realtime_link.rb
bitly-0.10.0 lib/bitly/v3/realtime_link.rb
bitly-0.9.0 lib/bitly/v3/realtime_link.rb
bitly-0.8.1 lib/bitly/v3/realtime_link.rb
bitly-0.8.0 lib/bitly/v3/realtime_link.rb
bitly-0.7.0 lib/bitly/v3/realtime_link.rb
bitly-0.6.2 lib/bitly/v3/realtime_link.rb
bitly-0.6.1 lib/bitly/v3/realtime_link.rb
bitly-0.6.0 lib/bitly/v3/realtime_link.rb