Class: Plotly::Data
Instance Attribute Summary collapse
-
#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.
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.
16 17 18 |
# File 'lib/plotly/data.rb', line 16 def initialize(opts = {}) opts.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#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 |