Class: Kippt::UserClips
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Attributes inherited from Clips
Instance Method Summary collapse
- #favorites ⇒ Object
-
#initialize(client, user) ⇒ UserClips
constructor
A new instance of UserClips.
- #likes ⇒ Object
Methods inherited from Clips
#collection_class, #object_class, valid_filter_parameters
Methods included from CollectionResource
#build, #create, #destroy_resource, #save_resource
Methods included from ReadCollectionResource
Constructor Details
#initialize(client, user) ⇒ UserClips
Returns a new instance of UserClips.
6 7 8 9 10 |
# File 'lib/kippt/user_clips.rb', line 6 def initialize(client, user) @user = user super(client, "users/#{user.id}/clips") end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'lib/kippt/user_clips.rb', line 4 def user @user end |