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



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def categories
  @categories
end

#changedObject

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def changed
  @changed
end

#churnObject

Returns the value of attribute churn

Returns:

  • (Object)

    the current value of churn



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def churn
  @churn
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def file
  @file
end

#finding_countObject

Returns the value of attribute finding_count

Returns:

  • (Object)

    the current value of finding_count



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def finding_count
  @finding_count
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def score
  @score
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



121
122
123
# File 'lib/rails_doctor/models.rb', line 121

def summary
  @summary
end

Instance Method Details

#to_hObject



131
132
133
134
135
136
137
138
139
140
141
# File 'lib/rails_doctor/models.rb', line 131

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