Class: Bitly::V3::Country

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Country

Returns a new instance of Country.



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

def initialize(opts)
  ['clicks', 'country'].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/country.rb', line 4

def clicks
  @clicks
end

#countryObject (readonly)

Returns the value of attribute country.



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

def country
  @country
end