timcase/echonest

Echowrap::Feed
A

Similar code found in 1 other location

require 'echowrap/base'

module Echowrap
  class Feed < Echowrap::Base
    attr_reader :name, :url, :date_posted, :date_found, :id, :summary, :type
Found in Echowrap::Feed and 1 other location - About 3 hrs to fix
lib/echowrap/asset.rb on lines 3..8

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Refactorings

Further Reading

There are no issues that match your filters.

require 'echowrap/base'

module Echowrap
  class Feed < Echowrap::Base
    attr_reader :name, :url, :date_posted, :date_found, :id, :summary, :type
    
    # @return [Array]
    def references
      @references ||= map_collection(Echowrap::Reference, :references)
    end
  end
end

Size

Lines of code
9