Class: Kippt::Following
- Inherits:
-
Object
- Object
- Kippt::Following
- Includes:
- CollectionResource
- Defined in:
- lib/kippt/following.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #base_uri ⇒ Object
- #collection_class ⇒ Object
-
#initialize(client, user) ⇒ Following
constructor
A new instance of Following.
- #object_class ⇒ Object
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
#user ⇒ Object (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_uri ⇒ Object
23 24 25 |
# File 'lib/kippt/following.rb', line 23 def base_uri "users/#{user.id}/following" end |
#collection_class ⇒ Object
19 20 21 |
# File 'lib/kippt/following.rb', line 19 def collection_class Kippt::UserCollection end |