Class: Curvature::Sample
- Inherits:
-
Object
- Object
- Curvature::Sample
- Defined in:
- lib/curvature/sample.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#input ⇒ Object
Returns the value of attribute input.
-
#label ⇒ Object
Returns the value of attribute label.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Sample
constructor
A new instance of Sample.
Constructor Details
#initialize(params = {}) ⇒ Sample
Returns a new instance of Sample.
10 11 12 13 |
# File 'lib/curvature/sample.rb', line 10 def initialize(params={}) { }.merge(params).each { |k, v| send("#{k}=", v) } end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/curvature/sample.rb', line 8 def attributes @attributes end |
#input ⇒ Object
Returns the value of attribute input.
6 7 8 |
# File 'lib/curvature/sample.rb', line 6 def input @input end |
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/curvature/sample.rb', line 5 def label @label end |
#output ⇒ Object
Returns the value of attribute output.
7 8 9 |
# File 'lib/curvature/sample.rb', line 7 def output @output end |