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

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 TasteProfile < Echowrap::Base
      attr_reader :name, :pending_tickets, :resolved, :score, :ticket, :total, :type 

      # @return [String]
      def id
        @attrs[:id] || @attrs[:ticket]
      end
      
      # @return [Array]
      def items
        @items ||= map_collection(Echowrap::Item, :items)
      end

      # @return [Echowrap::Keyvalues]
      def keyvalues
        @keyvalues ||= Echowrap::Keyvalues.new(@attrs[:keyvalues])
      end
      
      # @return [Array]
      def predictions
        @predictions ||= map_collection(Echowrap::Prediction, :predictions)
      end
      
    end
end
9
Complexity
0
Duplication
28
Lines
4
Methods
2.4
Complexity / M
0
Churn
18
Lines of Code
5
LOC / Method