Class: SportsApi::Object
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- SportsApi::Object
- Defined in:
- lib/sports_api/object.rb
Direct Known Subclasses
Football::Coach, Football::Country, Football::Fixture, Football::FixtureEvent, Football::FixtureHeadToHead, Football::FixtureLineup, Football::FixturePlayerStatistic, Football::FixtureRound, Football::FixtureStatistic, Football::Injury, Football::League, Football::LeagueSeason, Football::Odds, Football::OddsBet, Football::OddsBookmaker, Football::OddsLive, Football::OddsLiveBet, Football::OddsMapping, Football::Player, Football::PlayerSeason, Football::PlayerSquad, Football::PlayerTopAssist, Football::PlayerTopRedCard, Football::PlayerTopScorer, Football::PlayerTopYellowCard, Football::Prediction, Football::Sidelined, Football::Standing, Football::Team, Football::TeamCountry, Football::TeamSeason, Football::TeamStatistic, Football::Timezone, Football::Transfer, Football::Trophy, Football::Venue
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Object
constructor
A new instance of Object.
Constructor Details
#initialize(attributes) ⇒ Object
Returns a new instance of Object.
7 8 9 |
# File 'lib/sports_api/object.rb', line 7 def initialize(attributes) super(to_ostruct(transform_attributes(attributes))) end |