Class: Selector

Inherits:
Item
  • Object
show all
Defined in:
app/models/selector.rb

Constant Summary collapse

VIEWS =
%w{line thumb}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#queryObject



5
# File 'app/models/selector.rb', line 5

def query; @query ||= [] end

#viewObject



11
# File 'app/models/selector.rb', line 11

def view; @view ||= 'line' end

Instance Method Details

#itemsObject



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 options = {}
  super options.merge(methods: [:items])
end