Class: ScrapCbf::Round

Inherits:
Object
  • Object
show all
Defined in:
lib/scrap_cbf/models/round.rb

Constant Summary collapse

ATTRS_ROUND =
i[
  number
  matches
].freeze
ATTRS_CHAMPIONSHIP =
i[
  championship
  serie
].freeze

Instance Method Summary collapse

Instance Method Details

#to_hObject



18
19
20
21
22
23
24
25
# File 'lib/scrap_cbf/models/round.rb', line 18

def to_h
  {
    championship: championship,
    serie: serie,
    number: number,
    matches: matches.to_h
  }.with_indifferent_access
end