class ScrapCbf::Championship

Constants

ATTR_ACCESSORS

Public Class Methods

new(year, serie) click to toggle source
# File lib/scrap_cbf/models/championship.rb, line 15
def initialize(year, serie)
  @year = year
  @serie = serie
end

Public Instance Methods

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