Class: ICWS::Connection::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/icws/feature.rb

Overview

A feature of the CIC server

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#featureObject

Returns the value of attribute feature.



5
6
7
# File 'lib/icws/feature.rb', line 5

def feature
  @feature
end

#versionObject

Returns the value of attribute version.



5
6
7
# File 'lib/icws/feature.rb', line 5

def version
  @version
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/icws/feature.rb', line 12

def to_s
    @feature + ' - ' + @version.to_s
end