Class: Bitly::V3::Country
- Inherits:
-
Object
- Object
- Bitly::V3::Country
- Defined in:
- lib/bitly/v3/country.rb
Instance Attribute Summary collapse
-
#clicks ⇒ Object
readonly
Returns the value of attribute clicks.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Country
constructor
A new instance of Country.
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
#clicks ⇒ Object (readonly)
Returns the value of attribute clicks.
4 5 6 |
# File 'lib/bitly/v3/country.rb', line 4 def clicks @clicks end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
4 5 6 |
# File 'lib/bitly/v3/country.rb', line 4 def country @country end |