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::Analysis

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 Analysis < Echowrap::Base

    def bars
     @bars ||= map_collection(Echowrap::Bar, :bars)
    end

    def beats
      @beats ||= map_collection(Echowrap::Beat, :beats)
    end

    def id
      @attrs[:meta][:timestamp]
    end

    def meta
      @meta ||= Echowrap::Meta.new(@attrs[:meta])
    end

    def sections
      @sections ||= map_collection(Echowrap::Section, :sections)
    end

    def segments
      @segments ||= map_collection(Echowrap::Segment, :segments)
    end

    def tatums
      @tatums ||= map_collection(Echowrap::Tatum, :tatums)
    end

    def track
      @track ||= Echowrap::Track.new(@attrs[:track])
    end

  end
end
15
Complexity
0
Duplication
39
Lines
8
Methods
1.9
Complexity / M
0
Churn
29
Lines of Code
4
LOC / Method