Class: RailsDoctor::Hotspot

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_doctor/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories

Returns:

  • (Object)

    the current value of categories



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def categories
  @categories
end

#changedObject

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def changed
  @changed
end

#churnObject

Returns the value of attribute churn

Returns:

  • (Object)

    the current value of churn



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def churn
  @churn
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def file
  @file
end

#finding_countObject

Returns the value of attribute finding_count

Returns:

  • (Object)

    the current value of finding_count



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def finding_count
  @finding_count
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def score
  @score
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



131
132
133
# File 'lib/rails_doctor/models.rb', line 131

def summary
  @summary
end

Instance Method Details

#to_hObject



141
142
143
144
145
146
147
148
149
150
151
# File 'lib/rails_doctor/models.rb', line 141

def to_h
  {
    file: file,
    score: score,
    finding_count: finding_count,
    churn: churn,
    changed: changed,
    categories: categories,
    summary: summary
  }
end