Class: Echowrap::Asset

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, attr_reader, #attrs, #initialize, #update

Constructor Details

This class inherits a constructor from Echowrap::Base

Instance Attribute Details

#explicitObject (readonly)

Returns the value of attribute explicit.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def explicit
  @explicit
end

#filenameObject (readonly)

Returns the value of attribute filename.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def filename
  @filename
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def id
  @id
end

#releaseObject (readonly)

Returns the value of attribute release.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def release
  @release
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def type
  @type
end

#yearObject (readonly)

Returns the value of attribute year.



5
6
7
# File 'lib/echowrap/asset.rb', line 5

def year
  @year
end

Instance Method Details

#echonest_idsObject



7
8
9
# File 'lib/echowrap/asset.rb', line 7

def echonest_ids
  @echonest_ids ||= map_collection(Echowrap::EchonestId, :echonest_ids)
end