Class: ICWS::Connection::Feature
- Inherits:
-
Object
- Object
- ICWS::Connection::Feature
- Defined in:
- lib/icws/feature.rb
Overview
A feature of the CIC server
Instance Attribute Summary collapse
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(feature, version) ⇒ Feature
constructor
A new instance of Feature.
- #to_s ⇒ Object
Constructor Details
#initialize(feature, version) ⇒ Feature
Returns a new instance of Feature.
7 8 9 10 |
# File 'lib/icws/feature.rb', line 7 def initialize(feature, version) @feature = feature @version = version end |
Instance Attribute Details
#feature ⇒ Object
Returns the value of attribute feature.
5 6 7 |
# File 'lib/icws/feature.rb', line 5 def feature @feature end |
#version ⇒ Object
Returns the value of attribute version.
5 6 7 |
# File 'lib/icws/feature.rb', line 5 def version @version end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/icws/feature.rb', line 12 def to_s @feature + ' - ' + @version.to_s end |