Class: Discogs::Release

Inherits:
Base
  • Object
show all
Defined in:
lib/release.rb

Constant Summary

Constants inherited from Base

Base::DISCOGS_BASE_URL

Instance Attribute Summary collapse

Attributes inherited from Base

#api_key, #request_string, #request_type

Instance Method Summary collapse

Methods inherited from Base

#fetched, #parsed

Constructor Details

#initialize(discog_id) ⇒ Release

Returns a new instance of Release.



19
20
21
22
# File 'lib/release.rb', line 19

def initialize(discog_id)
  @discog_id = discog_id
  super
end

Instance Attribute Details

#contributorsObject

An array of Contributor objects



89
90
91
# File 'lib/release.rb', line 89

def contributors
  @contributors
end

#countryObject

Discogs Data



51
52
53
# File 'lib/release.rb', line 51

def country
  @country
end

#discog_idObject

Returns the value of attribute discog_id.



4
5
6
# File 'lib/release.rb', line 4

def discog_id
  @discog_id
end

#discog_statusObject

status as determined by discogs ‘Approved’, etc..



26
27
28
# File 'lib/release.rb', line 26

def discog_status
  @discog_status
end

#formatObject

Returns the value of attribute format.



4
5
6
# File 'lib/release.rb', line 4

def format
  @format
end

#formatsObject

An array of Format objects



61
62
63
# File 'lib/release.rb', line 61

def formats
  @formats
end

#genresObject

Discogs Data



41
42
43
# File 'lib/release.rb', line 41

def genres
  @genres
end

#imagesObject

An array of Image objects



78
79
80
# File 'lib/release.rb', line 78

def images
  @images
end

#labelObject

Returns the value of attribute label.



4
5
6
# File 'lib/release.rb', line 4

def label
  @label
end

#labelsObject

Discogs Data



36
37
38
# File 'lib/release.rb', line 36

def labels
  @labels
end

#releasedObject

Discogs Data



56
57
58
# File 'lib/release.rb', line 56

def released
  @released
end

#stylesObject

Discogs Data



46
47
48
# File 'lib/release.rb', line 46

def styles
  @styles
end

#titleObject

Discogs Data



31
32
33
# File 'lib/release.rb', line 31

def title
  @title
end

#tracksObject

An array of Track objects



68
69
70
# File 'lib/release.rb', line 68

def tracks
  @tracks
end

Instance Method Details

#to_sObject

:nodoc:



95
96
97
# File 'lib/release.rb', line 95

def to_s #:nodoc:
  "#{title} - #{label} - #{released} - #{format}"
end