Class: Ryze::Object

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/Ryze/object.rb

Overview

Object is a base class for all objects returned from the Riot API.

Direct Known Subclasses

Match, Summoner

Instance Method Summary collapse

Constructor Details

#initialize(attributes, client = nil) ⇒ Object

Returns a new instance of Object.



8
9
10
11
# File 'lib/Ryze/object.rb', line 8

def initialize(attributes, client = nil)
  super to_ostruct(attributes)
  @client = client
end