Class: Ryze::Object
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Ryze::Object
- Defined in:
- lib/Ryze/object.rb
Overview
Object is a base class for all objects returned from the Riot API.
Instance Method Summary collapse
-
#initialize(attributes, client = nil) ⇒ Object
constructor
A new instance of Object.
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 |