Class: Bors::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/bors/result.rb,
lib/bors/result/samples.rb,
lib/bors/result/settings.rb,
lib/bors/result/statistics.rb

Defined Under Namespace

Classes: Samples, Settings, Statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Result

Returns a new instance of Result.



10
11
12
# File 'lib/bors/result.rb', line 10

def initialize(data)
	@data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/bors/result.rb', line 8

def data
  @data
end

Instance Method Details

#samplesObject



18
19
20
# File 'lib/bors/result.rb', line 18

def samples
	@samples ||= Samples.new(@data)
end

#settingsObject



14
15
16
# File 'lib/bors/result.rb', line 14

def settings		
	@settings ||= Settings.new(@data)
end

#statisticsObject



22
23
24
# File 'lib/bors/result.rb', line 22

def statistics
	@statistics ||= Statistics.new(@data)
end