class Calypso::Hardware
Calypso
hardware model.
Attributes
cpu[R]
@return [String] CPU name.
id[R]
@return [String] Hardware
ID.
name[R]
@return [String] Hardware
name.
tests[R]
@return [Array] An array of Calypso::UnitTest
Public Class Methods
new(id, name, cpu)
click to toggle source
Create a new Calypso::Hardware
object.
@param id [String] Hardware
ID. @param name [String] Hardware
name. @param cpu [String] CPU name (or MCU for the matter of it).
# File lib/calypso/hardware.rb, line 37 def initialize(id, name, cpu) @id = id @name = name @cpu = cpu @tests = [] end
Public Instance Methods
add_test(test)
click to toggle source
Add a new test.
@param test [Calypso::UnitTest] Test to add. @return [Array] The new array of [Calypso::UnitTest].
# File lib/calypso/hardware.rb, line 48 def add_test(test) @tests.push test end