Class: GreenGoose::StatCollection
- Inherits:
-
Object
- Object
- GreenGoose::StatCollection
- Includes:
- API
- Defined in:
- lib/greengoose/stat_collection.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
Instance Method Summary collapse
- #endpoint ⇒ Object
-
#initialize(client, conditions = {}) ⇒ StatCollection
constructor
A new instance of StatCollection.
- #klass ⇒ Object
Methods included from API
Constructor Details
#initialize(client, conditions = {}) ⇒ StatCollection
Returns a new instance of StatCollection.
10 11 12 13 |
# File 'lib/greengoose/stat_collection.rb', line 10 def initialize(client, conditions = {}) @client = client @conditions = conditions end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/greengoose/stat_collection.rb', line 8 def client @client end |
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
8 9 10 |
# File 'lib/greengoose/stat_collection.rb', line 8 def conditions @conditions end |
Instance Method Details
#endpoint ⇒ Object
19 20 21 |
# File 'lib/greengoose/stat_collection.rb', line 19 def endpoint "stats" end |
#klass ⇒ Object
15 16 17 |
# File 'lib/greengoose/stat_collection.rb', line 15 def klass GreenGoose::Stat end |