Class: Charts::Bar::Vertical::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_core/charts/bar/vertical/cell.rb

Constant Summary collapse

@@requested_args =
[:labels, :datasets]
@@default_args =
{
 }

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell

Returns a new instance of Cell.



11
12
13
14
15
16
17
18
19
20
21
# File 'app/cells/lato_core/charts/bar/vertical/cell.rb', line 11

def initialize(args = {})
  @args = validate_args(
    args: args,
    requested_args: @@requested_args,
    default_args: @@default_args
  )

  validates_labels
  validates_datasets
  set_conditions
end

Instance Method Details

#showObject



23
24
25
# File 'app/cells/lato_core/charts/bar/vertical/cell.rb', line 23

def show
  render 'show.html'
end