Class: Highcharts::Colors

Inherits:
Base
  • Object
show all
Defined in:
lib/highcharts/color.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#default, #options, #skip_quotation, #suboptions

Instance Method Summary collapse

Methods inherited from Base

#check_quotation, #inspect

Constructor Details

#initialize(options) ⇒ Colors

Returns a new instance of Colors.



6
7
8
# File 'lib/highcharts/color.rb', line 6

def initialize(options)
  @colors = Array.wrap(options)
end

Instance Attribute Details

#colorsObject (readonly)

Returns the value of attribute colors.



4
5
6
# File 'lib/highcharts/color.rb', line 4

def colors
  @colors
end

Instance Method Details

#to_jsonObject



10
11
12
# File 'lib/highcharts/color.rb', line 10

def to_json
  colors.to_json
end