100% free for Open Source, forever. Get another set of eyes on your code.

Take a look. Our new design is currently in beta, but you can start using it today!

A
 

Echowrap::Song

Updated more than 3 months ago.

No issues here.

Congrats! Give yourself time to reflect on your awesome coding skillz.

require 'echowrap/base'

module Echowrap
    class Song < Echowrap::Base
      attr_reader :artist_id, :artist_familiarity, :artist_hotttnesss, :artist_name,
                  :attributes, :id, :message, :score, :song_currency, :song_discovery,
                  :song_hotttnesss, :song_type, :title

      # @return [Echowrap::AudioSummary]
      def audio_summary
        @audio_summary ||= Echowrap::AudioSummary.new(@attrs[:audio_summary])
      end

      # @return [Echowrap::ArtistLocation]
      def artist_location
        @artist_location ||= Echowrap::Location.new(@attrs[:artist_location])
      end

      # @return [Array]
      def tracks
        @tracks ||= map_collection(Echowrap::Track, :tracks)
      end
    end
end
8
Complexity
0
Duplication
24
Lines
3
Methods
2.6
Complexity / M
0
Churn
17
Lines of Code
6
LOC / Method