Class: Discogs::Label
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#contact_info ⇒ Object
Discogs Data.
-
#images ⇒ Object
An array of image objects.
-
#name ⇒ Object
Discogs Data.
-
#parent ⇒ Object
parent label if applicable.
-
#profile ⇒ Object
Discogs Data.
-
#releases ⇒ Object
Be careful, this creates a Release object for each release.
-
#sublabels ⇒ Object
sublabels if applicable.
-
#urls ⇒ Object
Discogs Data An array of strings.
Attributes inherited from Base
#api_key, #request_string, #request_type
Instance Method Summary collapse
-
#initialize(request_string) ⇒ Label
constructor
A new instance of Label.
-
#label ⇒ Object
Discogs Data.
-
#to_s ⇒ Object
:nodoc:.
Methods inherited from Base
Constructor Details
#initialize(request_string) ⇒ Label
Returns a new instance of Label.
5 6 7 8 |
# File 'lib/label.rb', line 5 def initialize(request_string) @request_string = request_string super(@request_string, :label) end |
Instance Attribute Details
#contact_info ⇒ Object
Discogs Data
32 33 34 |
# File 'lib/label.rb', line 32 def contact_info @contact_info end |
#images ⇒ Object
An array of image objects
21 22 23 |
# File 'lib/label.rb', line 21 def images @images end |
#name ⇒ Object
Discogs Data
16 17 18 |
# File 'lib/label.rb', line 16 def name @name end |
#parent ⇒ Object
parent label if applicable
48 49 50 |
# File 'lib/label.rb', line 48 def parent @parent end |
#profile ⇒ Object
Discogs Data
37 38 39 |
# File 'lib/label.rb', line 37 def profile @profile end |
#releases ⇒ Object
Be careful, this creates a Release object for each release. Data is lazy loaded, so an API call will be created as soon as you access the attributes
69 70 71 |
# File 'lib/label.rb', line 69 def releases @releases end |
#sublabels ⇒ Object
sublabels if applicable
56 57 58 |
# File 'lib/label.rb', line 56 def sublabels @sublabels end |
#urls ⇒ Object
Discogs Data An array of strings
43 44 45 |
# File 'lib/label.rb', line 43 def urls @urls end |
Instance Method Details
#label ⇒ Object
Discogs Data
11 12 13 |
# File 'lib/label.rb', line 11 def label @label ||= (parsed/'label') end |
#to_s ⇒ Object
:nodoc:
78 79 80 |
# File 'lib/label.rb', line 78 def to_s #:nodoc: name end |