Class: Plotly::Marker
Constant Summary collapse
- ATTRS =
i(size color opacity line).freeze
Instance Method Summary collapse
-
#initialize(opts) ⇒ Marker
constructor
A new instance of Marker.
Methods included from Castable
Constructor Details
#initialize(opts) ⇒ Marker
Returns a new instance of Marker.
14 15 16 17 18 19 20 21 |
# File 'lib/plotly/marker.rb', line 14 def initialize(opts) return unless opts.is_a?(Hash) opts.each do |k, v| v.convert_to(Plotly::Line) if k.to_sym == :line instance_variable_set("@#{k}", v) end end |