Class: Nucleo::Models::SeoScore
- Inherits:
-
Object
- Object
- Nucleo::Models::SeoScore
- Defined in:
- lib/nucleo/models/seo_score.rb
Instance Method Summary collapse
-
#grade ⇒ String
Returns an alpha grade.
-
#initialize(attributes = {}) ⇒ Nucleo::Models::SeoScore
constructor
Returns an instance of the SeoScore domain model.
-
#score ⇒ Integer
Returns the numeric score.
Constructor Details
#initialize(attributes = {}) ⇒ Nucleo::Models::SeoScore
Returns an instance of the SeoScore domain model
9 10 11 |
# File 'lib/nucleo/models/seo_score.rb', line 9 def initialize(attributes={}) @attributes = attributes end |
Instance Method Details
#grade ⇒ String
Returns an alpha grade
23 24 25 |
# File 'lib/nucleo/models/seo_score.rb', line 23 def grade @attributes['grade'] end |
#score ⇒ Integer
Returns the numeric score
16 17 18 |
# File 'lib/nucleo/models/seo_score.rb', line 16 def score @attributes['score'].to_i end |