Class: BitlyOAuth::Referrer

Inherits:
Object
  • Object
show all
Defined in:
lib/bitly_oauth/referrer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Referrer

Returns a new instance of Referrer.



5
6
7
8
9
10
# File 'lib/bitly_oauth/referrer.rb', line 5

def initialize(options={})
  @url          = options['url']
  @clicks       = options['clicks']
  @referrer     = options['referrer']
  @referrer_app = options['referrer_app']
end

Instance Attribute Details

#clicksObject (readonly)

Returns the value of attribute clicks.



3
4
5
# File 'lib/bitly_oauth/referrer.rb', line 3

def clicks
  @clicks
end

#referrerObject (readonly)

Returns the value of attribute referrer.



3
4
5
# File 'lib/bitly_oauth/referrer.rb', line 3

def referrer
  @referrer
end

#referrer_appObject (readonly)

Returns the value of attribute referrer_app.



3
4
5
# File 'lib/bitly_oauth/referrer.rb', line 3

def referrer_app
  @referrer_app
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/bitly_oauth/referrer.rb', line 3

def url
  @url
end