Class: Brewby::Inputs::Test
- Inherits:
-
Object
- Object
- Brewby::Inputs::Test
- Defined in:
- lib/brewby/inputs/test.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Test
constructor
A new instance of Test.
- #read ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Test
Returns a new instance of Test.
5 6 7 |
# File 'lib/brewby/inputs/test.rb', line 5 def initialize = {} @name = [:name] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/brewby/inputs/test.rb', line 4 def name @name end |
Instance Method Details
#read ⇒ Object
9 10 11 |
# File 'lib/brewby/inputs/test.rb', line 9 def read (75 + rand(100)).to_f end |