Class: Ryze::Resource
- Inherits:
-
Object
- Object
- Ryze::Resource
- Defined in:
- lib/Ryze/resource.rb
Overview
Resource is a class that provides a base for all Riot API resources.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(client) ⇒ Resource
Returns a new instance of Resource.
8 9 10 |
# File 'lib/Ryze/resource.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/Ryze/resource.rb', line 6 def client @client end |