Class: MicrosoftGraph::Models::WorkbookChartAxes

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_chart_axes.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new workbookChartAxes and sets the default values.



37
38
39
# File 'lib/models/workbook_chart_axes.rb', line 37

def initialize()
    super
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a workbook_chart_axes

Raises:

  • (StandardError)


45
46
47
48
# File 'lib/models/workbook_chart_axes.rb', line 45

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return WorkbookChartAxes.new
end

Instance Method Details

#category_axisObject

Gets the categoryAxis property value. Represents the category axis in a chart. Read-only.

Returns:

  • a workbook_chart_axis



22
23
24
# File 'lib/models/workbook_chart_axes.rb', line 22

def category_axis
    return @category_axis
end

#category_axis=(value) ⇒ Object

Sets the categoryAxis property value. Represents the category axis in a chart. Read-only.

Parameters:

  • value

    Value to set for the categoryAxis property.

Returns:

  • a void



30
31
32
# File 'lib/models/workbook_chart_axes.rb', line 30

def category_axis=(value)
    @category_axis = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
59
# File 'lib/models/workbook_chart_axes.rb', line 53

def get_field_deserializers()
    return super.merge({
        "categoryAxis" => lambda {|n| @category_axis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }) },
        "seriesAxis" => lambda {|n| @series_axis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }) },
        "valueAxis" => lambda {|n| @value_axis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxis.create_from_discriminator_value(pn) }) },
    })
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


65
66
67
68
69
70
71
# File 'lib/models/workbook_chart_axes.rb', line 65

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("categoryAxis", @category_axis)
    writer.write_object_value("seriesAxis", @series_axis)
    writer.write_object_value("valueAxis", @value_axis)
end

#series_axisObject

Gets the seriesAxis property value. Represents the series axis of a 3-dimensional chart. Read-only.

Returns:

  • a workbook_chart_axis



76
77
78
# File 'lib/models/workbook_chart_axes.rb', line 76

def series_axis
    return @series_axis
end

#series_axis=(value) ⇒ Object

Sets the seriesAxis property value. Represents the series axis of a 3-dimensional chart. Read-only.

Parameters:

  • value

    Value to set for the seriesAxis property.

Returns:

  • a void



84
85
86
# File 'lib/models/workbook_chart_axes.rb', line 84

def series_axis=(value)
    @series_axis = value
end

#value_axisObject

Gets the valueAxis property value. Represents the value axis in an axis. Read-only.

Returns:

  • a workbook_chart_axis



91
92
93
# File 'lib/models/workbook_chart_axes.rb', line 91

def value_axis
    return @value_axis
end

#value_axis=(value) ⇒ Object

Sets the valueAxis property value. Represents the value axis in an axis. Read-only.

Parameters:

  • value

    Value to set for the valueAxis property.

Returns:

  • a void



99
100
101
# File 'lib/models/workbook_chart_axes.rb', line 99

def value_axis=(value)
    @value_axis = value
end