Class: Bitly::V3::RealtimeLink
- Inherits:
-
Object
- Object
- Bitly::V3::RealtimeLink
- Defined in:
- lib/bitly/v3/realtime_link.rb
Overview
Day objects are created by the realtime_links method of a user
Instance Attribute Summary collapse
-
#clicks ⇒ Object
readonly
Returns the value of attribute clicks.
-
#user_hash ⇒ Object
readonly
Returns the value of attribute user_hash.
Instance Method Summary collapse
-
#create_url(client) ⇒ Object
A convenience method to create a Bitly::Url from the data.
-
#initialize(opts) ⇒ RealtimeLink
constructor
A new instance of RealtimeLink.
Constructor Details
#initialize(opts) ⇒ RealtimeLink
Returns a new instance of RealtimeLink.
7 8 9 10 |
# File 'lib/bitly/v3/realtime_link.rb', line 7 def initialize(opts) @clicks = opts['clicks'] @user_hash = opts['user_hash'] end |
Instance Attribute Details
#clicks ⇒ Object (readonly)
Returns the value of attribute clicks.
5 6 7 |
# File 'lib/bitly/v3/realtime_link.rb', line 5 def clicks @clicks end |
#user_hash ⇒ Object (readonly)
Returns the value of attribute user_hash.
5 6 7 |
# File 'lib/bitly/v3/realtime_link.rb', line 5 def user_hash @user_hash end |