Class: TED::Spyder::CT
- Inherits:
-
Object
- Object
- TED::Spyder::CT
- Defined in:
- lib/ted/spyder/ct.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#multiplier ⇒ Object
readonly
Returns the value of attribute multiplier.
-
#spyder ⇒ Object
readonly
The Spyder this CT belongs to.
Instance Method Summary collapse
-
#initialize(twenty_amp, multiplier, description) ⇒ CT
constructor
A new instance of CT.
-
#inspect ⇒ Object
:nodoc:.
- #twenty_amp? ⇒ Boolean
Constructor Details
#initialize(twenty_amp, multiplier, description) ⇒ CT
Returns a new instance of CT.
8 9 10 |
# File 'lib/ted/spyder/ct.rb', line 8 def initialize(twenty_amp, multiplier, description) @twenty_amp, @multiplier, @description = twenty_amp, multiplier, description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/ted/spyder/ct.rb', line 6 def description @description end |
#multiplier ⇒ Object (readonly)
Returns the value of attribute multiplier.
6 7 8 |
# File 'lib/ted/spyder/ct.rb', line 6 def multiplier @multiplier end |
#spyder ⇒ Object (readonly)
The Spyder this CT belongs to
5 6 7 |
# File 'lib/ted/spyder/ct.rb', line 5 def spyder @spyder end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
17 18 19 |
# File 'lib/ted/spyder/ct.rb', line 17 def inspect "#<TED::Spyder::CT #{description} multiplier=#{multiplier}>" end |
#twenty_amp? ⇒ Boolean
12 13 14 |
# File 'lib/ted/spyder/ct.rb', line 12 def twenty_amp? @twenty_amp end |