Class: Quarry::DataSet::Feature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#featureObject (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

#nameObject



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

#typeObject



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