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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWE1MWNkZTI1MTU5OWJlMzZhZjY3Yzk4YmE2ZTJkMjljOTI3YjU3Yw==
4
+ MDZlZjJmMjc5NGQ4MjFiMTE4N2ZkODA3NDUzZWRhMTgzNTZmYTNhNg==
5
5
  data.tar.gz: !binary |-
6
- NDM4NWE1MzMyNGRmNjc4NmQ1ZjZjM2YxMjg4NDc1NWZmZWMwYThhNw==
6
+ NDU0YjA2Y2I4NDNlMGZkNmQ5ODdjOGUyYjAwNTI2M2U4Zjk2MGQ4MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzEyM2YwNDFkNjBiNGI4NTAzNjE2N2Q2NTAzMTk1MWZhMTVjYjgzMGYwZDg5
10
- Y2Q2YWExMmI1YmI3OTEzN2I2Y2JkMzEyYWE3MWRlYTU5NTc3NzVmMzllMWQ5
11
- MTQ1Y2FmM2IwOWM2ZTI2MGRiYmRiNGI3N2ZjY2IwZjgwZjUzZDk=
9
+ NzMxMTkxODRkN2VjYjUwMmNhN2UzMTkxMzg5ZTRlNmFjYzMzNmRlNzkxMDU1
10
+ YjBmMDJmNmQwYWE5ODY4NGRlZGU0ZTkyZmE3M2UzYjljYmFlYzc0Y2VjNWZj
11
+ YTE1NzI0YmU2MmRkOTlmMzYyZTMzMjBmMDlhYjcxMTdjYTVhOTY=
12
12
  data.tar.gz: !binary |-
13
- OWQ4ZTkzZDE4MmE0NDAyZjFlZmZmY2MwNmRjZWQ1NDBjODRhNmFhNzRlNzM1
14
- ODYyM2UwN2FkNDZmOGYzYjRhYWRjNDBjOGIzNmVkZGU0YjA4OGFlMGJiMTkw
15
- MGE5OGZlY2ZiMWMwYWI3OWM3MDg2NmYzM2Y5ODI3MGE5ZTAwMDU=
13
+ MGY1ZWI4MGJmOWJkZDlkYTY2Y2NiZTJhMGY5N2YxY2ViZWQ5ZTQ3OGIzZjlh
14
+ Mzg0NzRhMWRhZjFkY2Y4YTQ4NTQ0NzExOTIxNTdlM2QwM2EwZmM4OTdhNDkx
15
+ MTY0NWQxODA2OTQwZjQ0YWY2OGY2NmQ3N2ZlZTgxZWVjYWJmNDI=
@@ -1,3 +1,3 @@
1
1
  module DecibelWrapper
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -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
@@ -1,6 +1,6 @@
1
1
  class Decibel::Artist
2
2
 
3
- attr_accessor :LiteralName, :Id, :Name
3
+ attr_accessor :LiteralName, :Id, :Name, :Probability
4
4
 
5
5
  def initialize args
6
6
  args.each do |k, v|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decibel_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomallen400