class ScrapCbf::Ranking

Constants

ATTRS_CHAMPIONSHIP
ATTRS_RANK
TABLE_HEADER

Public Instance Methods

to_h() click to toggle source
# File lib/scrap_cbf/models/ranking.rb, line 33
def to_h
  attrs_acessor.each_with_object({}) do |attribute, hash|
    hash[attribute] = send attribute
  end.with_indifferent_access
end

Private Instance Methods

attrs_acessor() click to toggle source
# File lib/scrap_cbf/models/ranking.rb, line 41
def attrs_acessor
  (ATTRS_CHAMPIONSHIP + ATTRS_RANK)
end