Class: Nucleo::Models::SeoScore

Inherits:
Object
  • Object
show all
Defined in:
lib/nucleo/models/seo_score.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Nucleo::Models::SeoScore

Returns an instance of the SeoScore domain model

Parameters:

  • attributes (Hash) (defaults to: {})


9
10
11
# File 'lib/nucleo/models/seo_score.rb', line 9

def initialize(attributes={})
  @attributes = attributes
end

Instance Method Details

#gradeString

Returns an alpha grade

Returns:

  • (String)


23
24
25
# File 'lib/nucleo/models/seo_score.rb', line 23

def grade
  @attributes['grade']
end

#scoreInteger

Returns the numeric score

Returns:

  • (Integer)


16
17
18
# File 'lib/nucleo/models/seo_score.rb', line 16

def score
  @attributes['score'].to_i
end