Class: Qfill::List
- Inherits:
-
Object
- Object
- Qfill::List
- Defined in:
- lib/qfill/list.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
Returns the value of attribute elements.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ List
constructor
A new instance of List.
Constructor Details
#initialize(options = {}) ⇒ List
Returns a new instance of List.
10 11 12 13 14 15 |
# File 'lib/qfill/list.rb', line 10 def initialize( = {}) raise ArgumentError, "Missing required option :name for #{self.class}.new()" unless && [:name] @name = [:name] @elements = [:elements] || [] @filter = [:filter] end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
8 9 10 |
# File 'lib/qfill/list.rb', line 8 def elements @elements end |
#filter ⇒ Object
Returns the value of attribute filter.
8 9 10 |
# File 'lib/qfill/list.rb', line 8 def filter @filter end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/qfill/list.rb', line 8 def name @name end |