class Outrageous::Base
Constants
- CHAMPION_VERSION
- GAME_VERSION
- LEAGUE_VERSION
- STATIC_DATA_VERSION
- STATS_VERSION
- SUMMONER_VERSION
- TEAM_VERSION
Attributes
api_key[RW]
region[RW]
response[RW]
status[RW]
version[RW]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/outrageous/base.rb, line 21 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) if respond_to?(name) end end
Public Instance Methods
get(url, options = {})
click to toggle source
# File lib/outrageous/base.rb, line 31 def get(url, options = {}) response = self.class.get(url, query: { api_key: api_key }.merge(options)) self.status = response.code self.response = response.parsed_response end