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