Class: Plotly::Axis
Constant Summary collapse
- ATTRS =
i(title range).freeze
Instance Method Summary collapse
-
#initialize(opts) ⇒ Axis
constructor
A new instance of Axis.
Methods included from Castable
Constructor Details
#initialize(opts) ⇒ Axis
Returns a new instance of Axis.
10 11 12 13 |
# File 'lib/plotly/axis.rb', line 10 def initialize(opts) return unless opts.is_a?(Hash) opts.each { |k, v| instance_variable_set("@#{k}", v) } end |