Class: Brewby::Inputs::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/brewby/inputs/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Test

Returns a new instance of Test.



5
6
7
# File 'lib/brewby/inputs/test.rb', line 5

def initialize options = {}
  @name = options[:name]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/brewby/inputs/test.rb', line 4

def name
  @name
end

Instance Method Details

#readObject



9
10
11
# File 'lib/brewby/inputs/test.rb', line 9

def read
  (75 + rand(100)).to_f
end