Sha256: 7982d4ce16694a2ebf1b2f1e0a92c127a1b4ed7772f9aad58cfefb0ea8fe68d6
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
module Lolxin class ChampionDto attr_accessor(*%i( ranked_play_enabled bot_enabled bot_mm_enabled active free_to_play id data )) def initialize(data) @data = data initialize_with(data) end private def initialize_with(data) @ranked_play_enabled = data['rankedPlayEnabled'] @bot_enabled = data['botEnabled'] @bot_mm_enabled = data['botMmEnabled'] @active = data['active'] @free_to_play = data['freeToPlay'] @id = data['id'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lolxin-0.13.0 | lib/lolxin/dto/champion_dto.rb |