Class: Bitly::V3::Referrer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Referrer

Returns a new instance of Referrer


6
7
8
9
10
# File 'lib/bitly/v3/referrer.rb', line 6

def initialize(opts)
  ['clicks', 'referrer', 'referrer_app', 'url'].each do |attribute|
    instance_variable_set("@#{attribute}".to_sym, opts[attribute])
  end
end

Instance Attribute Details

#clicksObject (readonly)

Returns the value of attribute clicks


4
5
6
# File 'lib/bitly/v3/referrer.rb', line 4

def clicks
  @clicks
end

#referrerObject (readonly)

Returns the value of attribute referrer


4
5
6
# File 'lib/bitly/v3/referrer.rb', line 4

def referrer
  @referrer
end

#referrer_appObject (readonly)

Returns the value of attribute referrer_app


4
5
6
# File 'lib/bitly/v3/referrer.rb', line 4

def referrer_app
  @referrer_app
end

#urlObject (readonly)

Returns the value of attribute url


4
5
6
# File 'lib/bitly/v3/referrer.rb', line 4

def url
  @url
end