Class: Rose::Attribute
- Inherits:
-
Object
- Object
- Rose::Attribute
- Defined in:
- lib/rose/attribute.rb
Overview
An Attribute is value object used to operate on a table
Defined Under Namespace
Classes: Collection, Direct, Filter, Indirect, Pivot, Sort
Instance Attribute Summary collapse
-
#column_name ⇒ Object
readonly
Returns the value of attribute column_name.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(method_name, column_name) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(method_name, column_name) ⇒ Attribute
Returns a new instance of Attribute.
7 8 9 10 |
# File 'lib/rose/attribute.rb', line 7 def initialize(method_name, column_name) @method_name = method_name @column_name = column_name end |
Instance Attribute Details
#column_name ⇒ Object (readonly)
Returns the value of attribute column_name.
5 6 7 |
# File 'lib/rose/attribute.rb', line 5 def column_name @column_name end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
4 5 6 |
# File 'lib/rose/attribute.rb', line 4 def method_name @method_name end |