class Nucleo::Models::PageRank
Public Class Methods
new(attributes={})
click to toggle source
Returns an instance of the PageRank
domain model
@param attributes [Hash]
@return [Nucleo::Models::PageRank]
# File lib/nucleo/models/page_rank.rb, line 9 def initialize(attributes={}) @attributes = attributes end
Public Instance Methods
rank()
click to toggle source
Returns the numeric rank
@return [Integer]
# File lib/nucleo/models/page_rank.rb, line 16 def rank @attributes['rank'].to_i end
rank_max()
click to toggle source
Returns the numeric rank max
@return [Integer]
# File lib/nucleo/models/page_rank.rb, line 23 def rank_max @attributes['rank_max'].to_i end