Class: Lol::Model
- Inherits:
-
Object
- Object
- Lol::Model
- Defined in:
- lib/lol/model.rb
Direct Known Subclasses
Champion, ChampionStatisticsSummary, Game, League, LeagueEntry, MasteryPage, MatchSummary, MiniSeries, Player, PlayerStatistic, RankedStatisticsSummary, RawStatistic, Roster, Rune, RunePage, RuneSlot, Summoner, Talent, Team, TeamMember, TeamStatistic
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Lol::Model
constructor
Initializes a Lol::Model.
Constructor Details
#initialize(options = {}) ⇒ Lol::Model
Initializes a Lol::Model
12 13 14 15 16 17 |
# File 'lib/lol/model.rb', line 12 def initialize = {} @raw = .each do |attribute_name, value| send "#{attribute_name.to_s.underscore}=", value end end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
7 8 9 |
# File 'lib/lol/model.rb', line 7 def raw @raw end |