Class: Rocksky::Resources::Actor

Inherits:
Base
  • Object
show all
Defined in:
lib/rocksky/resources/actor.rb

Overview

‘app.rocksky.actor.*` endpoints.

Instance Attribute Summary

Attributes inherited from Base

#http

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rocksky::Resources::Base

Instance Method Details

#get_actor_albums(did:, limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object

Albums an actor has scrobbled.



11
12
13
14
15
# File 'lib/rocksky/resources/actor.rb', line 11

def get_actor_albums(did:, limit: nil, offset: nil, start_date: nil, end_date: nil)
  query("app.rocksky.actor.getActorAlbums",
        did: did, limit: limit, offset: offset,
        startDate: start_date, endDate: end_date)
end

#get_actor_artists(did:, limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object

Artists an actor has scrobbled.



18
19
20
21
22
# File 'lib/rocksky/resources/actor.rb', line 18

def get_actor_artists(did:, limit: nil, offset: nil, start_date: nil, end_date: nil)
  query("app.rocksky.actor.getActorArtists",
        did: did, limit: limit, offset: offset,
        startDate: start_date, endDate: end_date)
end

#get_actor_compatibility(did:) ⇒ Object

Compatibility score between the authenticated user and another actor.



55
56
57
# File 'lib/rocksky/resources/actor.rb', line 55

def get_actor_compatibility(did:)
  query("app.rocksky.actor.getActorCompatibility", did: did)
end

#get_actor_loved_songs(did:, limit: nil, offset: nil) ⇒ Object

Songs an actor has loved.



32
33
34
35
# File 'lib/rocksky/resources/actor.rb', line 32

def get_actor_loved_songs(did:, limit: nil, offset: nil)
  query("app.rocksky.actor.getActorLovedSongs",
        did: did, limit: limit, offset: offset)
end

#get_actor_neighbours(did:) ⇒ Object

Musical neighbours of an actor.



50
51
52
# File 'lib/rocksky/resources/actor.rb', line 50

def get_actor_neighbours(did:)
  query("app.rocksky.actor.getActorNeighbours", did: did)
end

#get_actor_playlists(did:, limit: nil, offset: nil) ⇒ Object

Playlists for an actor.



44
45
46
47
# File 'lib/rocksky/resources/actor.rb', line 44

def get_actor_playlists(did:, limit: nil, offset: nil)
  query("app.rocksky.actor.getActorPlaylists",
        did: did, limit: limit, offset: offset)
end

#get_actor_scrobbles(did:, limit: nil, offset: nil) ⇒ Object

Scrobbles for an actor.



38
39
40
41
# File 'lib/rocksky/resources/actor.rb', line 38

def get_actor_scrobbles(did:, limit: nil, offset: nil)
  query("app.rocksky.actor.getActorScrobbles",
        did: did, limit: limit, offset: offset)
end

#get_actor_songs(did:, limit: nil, offset: nil, start_date: nil, end_date: nil) ⇒ Object

Songs an actor has scrobbled.



25
26
27
28
29
# File 'lib/rocksky/resources/actor.rb', line 25

def get_actor_songs(did:, limit: nil, offset: nil, start_date: nil, end_date: nil)
  query("app.rocksky.actor.getActorSongs",
        did: did, limit: limit, offset: offset,
        startDate: start_date, endDate: end_date)
end

#get_profile(did:) ⇒ Object

Fetch a profile by DID or handle.



6
7
8
# File 'lib/rocksky/resources/actor.rb', line 6

def get_profile(did:)
  query("app.rocksky.actor.getProfile", did: did)
end