Class: Kippt::User

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/kippt/user.rb

Instance Method Summary collapse

Methods included from Resource

#destroy, included, #initialize, #save, #writable_attributes_hash

Instance Method Details

#clipsObject



27
28
29
# File 'lib/kippt/user.rb', line 27

def clips
  Kippt::UserClips.new(client, self)
end

#collection_resource_classObject



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

def collection_resource_class
  Kippt::Users
end

#followObject



56
57
58
# File 'lib/kippt/user.rb', line 56

def follow
  Kippt::FollowRelationship.new(client, self).follow
end

#follower_countObject



48
49
50
# File 'lib/kippt/user.rb', line 48

def follower_count
  counts["follows"]
end

#followersObject



31
32
33
# File 'lib/kippt/user.rb', line 31

def followers
  Kippt::Followers.new(client, self)
end

#followingObject



35
36
37
# File 'lib/kippt/user.rb', line 35

def following
  Kippt::Following.new(client, self)
end

#following?Boolean

Tells if authenticated user is following the user.

Returns:

  • (Boolean)


44
45
46
# File 'lib/kippt/user.rb', line 44

def following?
  Kippt::FollowRelationship.new(client, self).following?
end

#following_countObject



52
53
54
# File 'lib/kippt/user.rb', line 52

def following_count
  counts["followed_by"]
end

#likesObject



39
40
41
# File 'lib/kippt/user.rb', line 39

def likes
  Kippt::UserLikes.new(client, self)
end

#listsObject



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

def lists
  Kippt::UserLists.new(client, self)
end

#unfollowObject



60
61
62
# File 'lib/kippt/user.rb', line 60

def unfollow
  Kippt::FollowRelationship.new(client, self).unfollow
end