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