Class: ScrapCbf::Round
- Inherits:
-
Object
- Object
- ScrapCbf::Round
- 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_h ⇒ Object
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 |