decibel_wrapper 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/decibel_wrapper/version.rb +1 -1
- data/lib/wrapper/resources/album.rb +10 -1
- data/lib/wrapper/resources/artist.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDZlZjJmMjc5NGQ4MjFiMTE4N2ZkODA3NDUzZWRhMTgzNTZmYTNhNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDU0YjA2Y2I4NDNlMGZkNmQ5ODdjOGUyYjAwNTI2M2U4Zjk2MGQ4MA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzMxMTkxODRkN2VjYjUwMmNhN2UzMTkxMzg5ZTRlNmFjYzMzNmRlNzkxMDU1
|
10
|
+
YjBmMDJmNmQwYWE5ODY4NGRlZGU0ZTkyZmE3M2UzYjljYmFlYzc0Y2VjNWZj
|
11
|
+
YTE1NzI0YmU2MmRkOTlmMzYyZTMzMjBmMDlhYjcxMTdjYTVhOTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGY1ZWI4MGJmOWJkZDlkYTY2Y2NiZTJhMGY5N2YxY2ViZWQ5ZTQ3OGIzZjlh
|
14
|
+
Mzg0NzRhMWRhZjFkY2Y4YTQ4NTQ0NzExOTIxNTdlM2QwM2EwZmM4OTdhNDkx
|
15
|
+
MTY0NWQxODA2OTQwZjQ0YWY2OGY2NmQ3N2ZlZTgxZWVjYWJmNDI=
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Decibel::Album
|
2
2
|
|
3
|
-
attr_accessor :Id, :Title, :FeaturedArtistString, :LiteralMainArtists, :FeaturedArtists, :IsUnofficial, :Identifiers, :Genres, :Tracks
|
3
|
+
attr_accessor :Id, :Title, :FeaturedArtistString, :LiteralMainArtists, :FeaturedArtists, :IsUnofficial, :Identifiers, :Genres, :Tracks, :MainArtists
|
4
4
|
|
5
5
|
def initialize args
|
6
6
|
args.each do |k, v|
|
@@ -14,6 +14,7 @@ class Decibel::Album
|
|
14
14
|
self.featured_artists_initialize if self.FeaturedArtists
|
15
15
|
self.genres_initialize if self.Genres
|
16
16
|
self.tracks_initialize if self.Tracks
|
17
|
+
self.artists_initialize if self.MainArtists
|
17
18
|
end
|
18
19
|
|
19
20
|
def identifiers_initialize
|
@@ -47,5 +48,13 @@ class Decibel::Album
|
|
47
48
|
end
|
48
49
|
self.Tracks = array
|
49
50
|
end
|
51
|
+
|
52
|
+
def artists_initialize
|
53
|
+
array = []
|
54
|
+
self.MainArtists.each do |i|
|
55
|
+
array << Decibel::Artist.new(i)
|
56
|
+
end
|
57
|
+
self.MainArtists = array
|
58
|
+
end
|
50
59
|
|
51
60
|
end
|