Class: Plotly::Data
Instance Attribute Summary collapse
-
#colorscale ⇒ Object
Returns the value of attribute colorscale.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#values ⇒ Object
Returns the value of attribute values.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Data
constructor
A new instance of Data.
Methods included from Castable
Constructor Details
#initialize(opts = {}) ⇒ Data
Returns a new instance of Data.
18 19 20 |
# File 'lib/plotly/data.rb', line 18 def initialize(opts = {}) opts.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#colorscale ⇒ Object
Returns the value of attribute colorscale.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def colorscale @colorscale end |
#labels ⇒ Object
Returns the value of attribute labels.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def labels @labels end |
#mode ⇒ Object
Returns the value of attribute mode.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def type @type end |
#values ⇒ Object
Returns the value of attribute values.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def values @values end |
#x ⇒ Object
Returns the value of attribute x.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def y @y end |
#z ⇒ Object
Returns the value of attribute z.
7 8 9 |
# File 'lib/plotly/data.rb', line 7 def z @z end |