Class: Quarry::DataSet::Feature
- Inherits:
-
Object
- Object
- Quarry::DataSet::Feature
- Defined in:
- lib/quarry_rb/data_set/feature.rb
Instance Attribute Summary collapse
-
#feature ⇒ Object
readonly
Returns the value of attribute feature.
Instance Method Summary collapse
-
#initialize(feature, data_set) ⇒ Feature
constructor
A new instance of Feature.
- #name ⇒ Object
- #name=(new_name) ⇒ Object
- #type ⇒ Object
- #type=(new_type) ⇒ Object
Constructor Details
#initialize(feature, data_set) ⇒ Feature
Returns a new instance of Feature.
6 7 8 9 |
# File 'lib/quarry_rb/data_set/feature.rb', line 6 def initialize(feature, data_set) @data_set = data_set @feature = feature end |
Instance Attribute Details
#feature ⇒ Object (readonly)
Returns the value of attribute feature.
4 5 6 |
# File 'lib/quarry_rb/data_set/feature.rb', line 4 def feature @feature end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/quarry_rb/data_set/feature.rb', line 11 def name @feature.get_name end |
#name=(new_name) ⇒ Object
15 16 17 |
# File 'lib/quarry_rb/data_set/feature.rb', line 15 def name=(new_name) @feature.set_name(new_name) end |
#type ⇒ Object
19 20 21 |
# File 'lib/quarry_rb/data_set/feature.rb', line 19 def type @feature.get_type end |
#type=(new_type) ⇒ Object
23 24 25 |
# File 'lib/quarry_rb/data_set/feature.rb', line 23 def type=(new_type) @feature.set_type(new_type) end |