Class: Kippt::Following

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ReadCollectionResource

#[], #collection_from_url, #fetch

Constructor Details

#initialize(client, user) ⇒ Following

Returns a new instance of Following.



12
13
14
15
# File 'lib/kippt/following.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/following.rb', line 6

def user
  @user
end

Class Method Details

.valid_filter_parametersObject



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

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

Instance Method Details

#base_uriObject



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

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

#collection_classObject



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

def collection_class
  Kippt::UserCollection
end

#object_classObject



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

def object_class
  Kippt::User
end