Class: Kippt::UserLists
- Inherits:
-
Object
- Object
- Kippt::UserLists
- Includes:
- CollectionResource
- Defined in:
- lib/kippt/user_lists.rb
Overview
Loads public lists for a user.
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
- #base_uri ⇒ Object
- #collection_class ⇒ Object
-
#initialize(client, user) ⇒ UserLists
constructor
A new instance of UserLists.
- #object_class ⇒ Object
Methods included from CollectionResource
#build, #create, #destroy_resource, #save_resource
Methods included from ReadCollectionResource
Constructor Details
#initialize(client, user) ⇒ UserLists
Returns a new instance of UserLists.
11 12 13 14 |
# File 'lib/kippt/user_lists.rb', line 11 def initialize(client, user) @client = client @user = user end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
5 6 7 |
# File 'lib/kippt/user_lists.rb', line 5 def user @user end |
Class Method Details
.valid_filter_parameters ⇒ Object
7 8 9 |
# File 'lib/kippt/user_lists.rb', line 7 def self.valid_filter_parameters [:limit, :offset] end |
Instance Method Details
#base_uri ⇒ Object
24 25 26 |
# File 'lib/kippt/user_lists.rb', line 24 def base_uri "users/#{user.id}/lists" end |
#collection_class ⇒ Object
20 21 22 |
# File 'lib/kippt/user_lists.rb', line 20 def collection_class Kippt::ListCollection end |