Class: Spotify::Models::Follower
- Inherits:
-
Object
- Object
- Spotify::Models::Follower
- Defined in:
- lib/spotify/models/follower.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Follower
constructor
Sets the arguments to its variables.
Constructor Details
#initialize(args = {}) ⇒ Follower
Sets the arguments to its variables.
16 17 18 19 20 21 |
# File 'lib/spotify/models/follower.rb', line 16 def initialize(args = {}) args = Hash(args).with_indifferent_access @href = args[:href] @total = args[:total] end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
7 8 9 |
# File 'lib/spotify/models/follower.rb', line 7 def href @href end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
7 8 9 |
# File 'lib/spotify/models/follower.rb', line 7 def total @total end |