Class: GithubStats::Reports::Results

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/github_stats/reports.rb

Overview

Provides enumerable access to the results

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



15
16
17
# File 'lib/github_stats/reports.rb', line 15

def data
  @data
end

#keysObject

Returns the value of attribute keys.



15
16
17
# File 'lib/github_stats/reports.rb', line 15

def keys
  @keys
end