Class: Selector
- Inherits:
-
Item
- Object
- Item
- Selector
- Defined in:
- app/models/selector.rb
Constant Summary collapse
- VIEWS =
%w{line thumb}
Instance Attribute Summary collapse
Instance Method Summary collapse
- #items ⇒ Object
- #items=(items) ⇒ Object
-
#to_json(options = {}) ⇒ Object
TODO1 update this.
Instance Attribute Details
#query ⇒ Object
5 |
# File 'app/models/selector.rb', line 5 def query; @query ||= [] end |
#view ⇒ Object
11 |
# File 'app/models/selector.rb', line 11 def view; @view ||= 'line' end |
Instance Method Details
#items ⇒ Object
20 |
# File 'app/models/selector.rb', line 20 def items; @_items ||= [] end |
#items=(items) ⇒ Object
21 |
# File 'app/models/selector.rb', line 21 def items= items; @_items = items end |
#to_json(options = {}) ⇒ Object
TODO1 update this
24 25 26 |
# File 'app/models/selector.rb', line 24 def to_json = {} super .merge(methods: [:items]) end |