Class: Kippt::Followers

Inherits:
Object
  • Object
show all
Includes:
ReadCollectionResource
Defined in:
lib/kippt/followers.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ReadCollectionResource

#[], #fetch

Constructor Details

#initialize(client, user) ⇒ Followers

Returns a new instance of Followers.



12
13
14
15
# File 'lib/kippt/followers.rb', line 12

def initialize(client, user)
  @client = client
  @user   = user
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



6
7
8
# File 'lib/kippt/followers.rb', line 6

def user
  @user
end

Class Method Details

.valid_filter_parametersObject



8
9
10
# File 'lib/kippt/followers.rb', line 8

def self.valid_filter_parameters
  [:limit, :offset]
end

Instance Method Details

#base_uriObject



25
26
27
# File 'lib/kippt/followers.rb', line 25

def base_uri
  "users/#{user.id}/followers"
end

#collection_classObject



21
22
23
# File 'lib/kippt/followers.rb', line 21

def collection_class
  Kippt::UserCollection
end

#object_classObject



17
18
19
# File 'lib/kippt/followers.rb', line 17

def object_class
  Kippt::User
end