class ScrapCbf::Match

Constants

ATTRS_CHAMPIONSHIP
ATTRS_MATCH

Public Instance Methods

to_h() click to toggle source
# File lib/scrap_cbf/models/match.rb, line 26
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/match.rb, line 34
def attrs_acessor
  (ATTRS_CHAMPIONSHIP + ATTRS_MATCH)
end