Class: CIMD::Parameter
- Inherits:
-
Object
- Object
- CIMD::Parameter
- Defined in:
- lib/cimd_structures.rb
Overview
connection
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code, value) ⇒ Parameter
constructor
A new instance of Parameter.
- #to_s ⇒ Object
Constructor Details
#initialize(code, value) ⇒ Parameter
Returns a new instance of Parameter.
46 47 48 49 |
# File 'lib/cimd_structures.rb', line 46 def initialize(code,value) @code = code @value = value end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
43 44 45 |
# File 'lib/cimd_structures.rb', line 43 def code @code end |
#value ⇒ Object
Returns the value of attribute value.
44 45 46 |
# File 'lib/cimd_structures.rb', line 44 def value @value end |
Class Method Details
Instance Method Details
#to_s ⇒ Object
51 52 53 |
# File 'lib/cimd_structures.rb', line 51 def to_s return sprintf "%03d:%s",@code,@value end |