Class: Rocksky::Resources::Like
- Defined in:
- lib/rocksky/resources/like.rb
Overview
‘app.rocksky.like.*` endpoints. All require an authenticated client.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#dislike_shout(uri:) ⇒ Object
Remove a like on a shout.
-
#dislike_song(uri:) ⇒ Object
Remove a like on a song.
-
#like_shout(uri:) ⇒ Object
Like a shout.
-
#like_song(uri:) ⇒ Object
Like a song.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rocksky::Resources::Base
Instance Method Details
#dislike_shout(uri:) ⇒ Object
Remove a like on a shout.
21 22 23 |
# File 'lib/rocksky/resources/like.rb', line 21 def dislike_shout(uri:) procedure("app.rocksky.like.dislikeShout", body: { uri: uri }) end |
#dislike_song(uri:) ⇒ Object
Remove a like on a song.
11 12 13 |
# File 'lib/rocksky/resources/like.rb', line 11 def dislike_song(uri:) procedure("app.rocksky.like.dislikeSong", body: { uri: uri }) end |
#like_shout(uri:) ⇒ Object
Like a shout.
16 17 18 |
# File 'lib/rocksky/resources/like.rb', line 16 def like_shout(uri:) procedure("app.rocksky.like.likeShout", body: { uri: uri }) end |
#like_song(uri:) ⇒ Object
Like a song.
6 7 8 |
# File 'lib/rocksky/resources/like.rb', line 6 def like_song(uri:) procedure("app.rocksky.like.likeSong", body: { uri: uri }) end |