Class: Kippt::ClipLikes
- Inherits:
-
Object
- Object
- Kippt::ClipLikes
- Includes:
- ReadCollectionResource
- Defined in:
- lib/kippt/clip_likes.rb
Overview
For fetching clip’s likes.
Instance Attribute Summary collapse
-
#clip ⇒ Object
readonly
Returns the value of attribute clip.
Class Method Summary collapse
Instance Method Summary collapse
- #base_uri ⇒ Object
- #collection_class ⇒ Object
-
#initialize(client, clip) ⇒ ClipLikes
constructor
A new instance of ClipLikes.
- #object_class ⇒ Object
Methods included from ReadCollectionResource
Constructor Details
#initialize(client, clip) ⇒ ClipLikes
Returns a new instance of ClipLikes.
9 10 11 12 |
# File 'lib/kippt/clip_likes.rb', line 9 def initialize(client, clip) @client = client @clip = clip end |
Instance Attribute Details
#clip ⇒ Object (readonly)
Returns the value of attribute clip.
7 8 9 |
# File 'lib/kippt/clip_likes.rb', line 7 def clip @clip end |
Class Method Details
.valid_filter_parameters ⇒ Object
14 15 16 |
# File 'lib/kippt/clip_likes.rb', line 14 def self.valid_filter_parameters [:limit, :offset] end |
Instance Method Details
#base_uri ⇒ Object
26 27 28 |
# File 'lib/kippt/clip_likes.rb', line 26 def base_uri "clips/#{clip.id}/likes" end |
#collection_class ⇒ Object
22 23 24 |
# File 'lib/kippt/clip_likes.rb', line 22 def collection_class Kippt::UserCollection end |