Class: Kippt::Followers
- Inherits:
-
Object
- Object
- Kippt::Followers
- Includes:
- ReadCollectionResource
- Defined in:
- lib/kippt/followers.rb
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) ⇒ Followers
constructor
A new instance of Followers.
- #object_class ⇒ Object
Methods included from ReadCollectionResource
Constructor Details
#initialize(client, user) ⇒ Followers
Returns a new instance of Followers.
12 13 14 15 |
# File 'lib/kippt/followers.rb', line 12 def initialize(client, user) @client = client @user = user end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
6 7 8 |
# File 'lib/kippt/followers.rb', line 6 def user @user end |
Class Method Details
.valid_filter_parameters ⇒ Object
8 9 10 |
# File 'lib/kippt/followers.rb', line 8 def self.valid_filter_parameters [:limit, :offset] end |
Instance Method Details
#base_uri ⇒ Object
25 26 27 |
# File 'lib/kippt/followers.rb', line 25 def base_uri "users/#{user.id}/followers" end |
#collection_class ⇒ Object
21 22 23 |
# File 'lib/kippt/followers.rb', line 21 def collection_class Kippt::UserCollection end |