Class: BitlyOAuth::RealtimeLink
- Inherits:
-
Object
- Object
- BitlyOAuth::RealtimeLink
- Defined in:
- lib/bitly_oauth/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 BitlyOAuth::Url from the data.
-
#initialize(options = {}) ⇒ RealtimeLink
constructor
A new instance of RealtimeLink.
Constructor Details
#initialize(options = {}) ⇒ RealtimeLink
Returns a new instance of RealtimeLink.
6 7 8 9 |
# File 'lib/bitly_oauth/realtime_link.rb', line 6 def initialize( = {}) @clicks = ['clicks'] @user_hash = ['user_hash'] end |
Instance Attribute Details
#clicks ⇒ Object (readonly)
Returns the value of attribute clicks.
4 5 6 |
# File 'lib/bitly_oauth/realtime_link.rb', line 4 def clicks @clicks end |
#user_hash ⇒ Object (readonly)
Returns the value of attribute user_hash.
4 5 6 |
# File 'lib/bitly_oauth/realtime_link.rb', line 4 def user_hash @user_hash end |
Instance Method Details
#create_url(client) ⇒ Object
A convenience method to create a BitlyOAuth::Url from the data
12 13 14 |
# File 'lib/bitly_oauth/realtime_link.rb', line 12 def create_url(client) BitlyOAuth::Url.new(client, 'user_clicks' => clicks, 'user_hash' => user_hash) end |