Class: ScrapCbf::Match
- Inherits:
-
Object
- Object
- ScrapCbf::Match
- Defined in:
- lib/scrap_cbf/models/match.rb
Constant Summary collapse
- ATTRS_MATCH =
%i[ round team opponent id_match team_score opponent_score updates date start_at place ].freeze
- ATTRS_CHAMPIONSHIP =
%i[ championship serie ].freeze
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
26 27 28 29 30 |
# 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 |