Class: Kippt::Following

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CollectionResource

#[], #all, #build, #collection_from_url, #create, #destroy_resource, #save_resource

Constructor Details

#initialize(client, user) ⇒ Following

Returns a new instance of Following.



10
11
12
13
# File 'lib/kippt/following.rb', line 10

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

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.



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

def user
  @user
end

Instance Method Details

#base_uriObject



23
24
25
# File 'lib/kippt/following.rb', line 23

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

#collection_classObject



19
20
21
# File 'lib/kippt/following.rb', line 19

def collection_class
  Kippt::UserCollection
end

#object_classObject



15
16
17
# File 'lib/kippt/following.rb', line 15

def object_class
  Kippt::User
end