class Nucleo::Models::SeoScore

Public Class Methods

new(attributes={}) click to toggle source

Returns an instance of the SeoScore domain model

@param attributes [Hash]

@return [Nucleo::Models::SeoScore]

# File lib/nucleo/models/seo_score.rb, line 9
def initialize(attributes={})
  @attributes = attributes
end

Public Instance Methods

grade() click to toggle source

Returns an alpha grade

@return [String]

# File lib/nucleo/models/seo_score.rb, line 23
def grade
  @attributes['grade']
end
score() click to toggle source

Returns the numeric score

@return [Integer]

# File lib/nucleo/models/seo_score.rb, line 16
def score
  @attributes['score'].to_i
end