Class: Spotify::Models::Follower

Inherits:
Object
  • Object
show all
Defined in:
lib/spotify/models/follower.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Follower

Sets the arguments to its variables.

Parameters:

  • args (Hash) (defaults to: {})

    the arguments that will be placed on each variable.



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

#hrefObject (readonly)

Returns the value of attribute href.



7
8
9
# File 'lib/spotify/models/follower.rb', line 7

def href
  @href
end

#totalObject (readonly)

Returns the value of attribute total.



7
8
9
# File 'lib/spotify/models/follower.rb', line 7

def total
  @total
end