Class: GithubStats::Reports::Results
- Inherits:
-
Object
- Object
- GithubStats::Reports::Results
- Extended by:
- Forwardable
- Defined in:
- lib/github_stats/reports.rb
Overview
Provides enumerable access to the results
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#keys ⇒ Object
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize(data, keys: []) ⇒ Results
constructor
A new instance of Results.
Constructor Details
#initialize(data, keys: []) ⇒ Results
Returns a new instance of Results.
19 20 21 22 |
# File 'lib/github_stats/reports.rb', line 19 def initialize(data, keys: []) self.data = data self.keys = keys end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
15 16 17 |
# File 'lib/github_stats/reports.rb', line 15 def data @data end |
#keys ⇒ Object
Returns the value of attribute keys.
15 16 17 |
# File 'lib/github_stats/reports.rb', line 15 def keys @keys end |