Class: Sortable::Column
- Inherits:
-
Object
- Object
- Sortable::Column
- Defined in:
- lib/sortable.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(name, scope = nil, column: name, method: nil) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(name, scope = nil, column: name, method: nil) ⇒ Column
Returns a new instance of Column.
23 24 25 26 27 28 |
# File 'lib/sortable.rb', line 23 def initialize(name, scope = nil, column: name, method: nil) @name = name @column = column @method = method @scope = scope end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
22 23 24 |
# File 'lib/sortable.rb', line 22 def column @column end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
22 23 24 |
# File 'lib/sortable.rb', line 22 def method @method end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/sortable.rb', line 22 def name @name end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
22 23 24 |
# File 'lib/sortable.rb', line 22 def scope @scope end |