Class: YFantasy::BaseSubresource
- Inherits:
-
Object
- Object
- YFantasy::BaseSubresource
show all
- Includes:
- Subresourceable
- Defined in:
- lib/y_fantasy/resources/base_subresource.rb
Direct Known Subclasses
DraftResult, Game::GameWeek, Game::PositionType, Group::Settings, Group::Standings, League::Scoreboard, League::Settings, League::Standings, Matchup, PickemTeam::Pick, PickemTeam::WeekPick, Player::DraftAnalysis, Player::OwnershipPercentage, Player::StatCollection, RosterPosition, Stat, StatCategory, StatModifier, StatWinner, Team::Manager, Team::Roster, Team::Standings, Team::StatCollection
Class Method Summary
collapse
included
Class Method Details
.dependent? ⇒ Boolean
9
10
11
|
# File 'lib/y_fantasy/resources/base_subresource.rb', line 9
def dependent?
true
end
|
.find(resource_name, key) ⇒ Object
.resource_name ⇒ Object
13
14
15
16
17
|
# File 'lib/y_fantasy/resources/base_subresource.rb', line 13
def resource_name
return if self == YFantasy::BaseSubresource
to_s.split("::").last.scan(/[A-Z][a-z]+/).join("_").downcase.to_sym
end
|