Class: MicrosoftGraph::Models::WorkbookChartAxis

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_chart_axis.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 workbookChartAxis and sets the default values.



37
38
39
# File 'lib/models/workbook_chart_axis.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_axis

Raises:

  • (StandardError)


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

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

Instance Method Details

#formatObject

Gets the format property value. Represents the formatting of a chart object, which includes line and font formatting. Read-only.

Returns:

  • a workbook_chart_axis_format



53
54
55
# File 'lib/models/workbook_chart_axis.rb', line 53

def format
    return @format
end

#format=(value) ⇒ Object

Sets the format property value. Represents the formatting of a chart object, which includes line and font formatting. Read-only.

Parameters:

  • value

    Value to set for the format property.

Returns:

  • a void



61
62
63
# File 'lib/models/workbook_chart_axis.rb', line 61

def format=(value)
    @format = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/models/workbook_chart_axis.rb', line 68

def get_field_deserializers()
    return super.merge({
        "format" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_value(pn) }) },
        "majorGridlines" => lambda {|n| @major_gridlines = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }) },
        "majorUnit" => lambda {|n| @major_unit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "maximum" => lambda {|n| @maximum = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "minimum" => lambda {|n| @minimum = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "minorGridlines" => lambda {|n| @minor_gridlines = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartGridlines.create_from_discriminator_value(pn) }) },
        "minorUnit" => lambda {|n| @minor_unit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "title" => lambda {|n| @title = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisTitle.create_from_discriminator_value(pn) }) },
    })
end

#major_gridlinesObject

Gets the majorGridlines property value. Returns a gridlines object that represents the major gridlines for the specified axis. Read-only.

Returns:

  • a workbook_chart_gridlines



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

def major_gridlines
    return @major_gridlines
end

#major_gridlines=(value) ⇒ Object

Sets the majorGridlines property value. Returns a gridlines object that represents the major gridlines for the specified axis. Read-only.

Parameters:

  • value

    Value to set for the majorGridlines property.

Returns:

  • a void



92
93
94
# File 'lib/models/workbook_chart_axis.rb', line 92

def major_gridlines=(value)
    @major_gridlines = value
end

#major_unitObject

Gets the majorUnit property value. Represents the interval between two major tick marks. Can be set to a numeric value or an empty string. The returned value is always a number.

Returns:

  • a json



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

def major_unit
    return @major_unit
end

#major_unit=(value) ⇒ Object

Sets the majorUnit property value. Represents the interval between two major tick marks. Can be set to a numeric value or an empty string. The returned value is always a number.

Parameters:

  • value

    Value to set for the majorUnit property.

Returns:

  • a void



107
108
109
# File 'lib/models/workbook_chart_axis.rb', line 107

def major_unit=(value)
    @major_unit = value
end

#maximumObject

Gets the maximum property value. Represents the maximum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.

Returns:

  • a json



114
115
116
# File 'lib/models/workbook_chart_axis.rb', line 114

def maximum
    return @maximum
end

#maximum=(value) ⇒ Object

Sets the maximum property value. Represents the maximum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.

Parameters:

  • value

    Value to set for the maximum property.

Returns:

  • a void



122
123
124
# File 'lib/models/workbook_chart_axis.rb', line 122

def maximum=(value)
    @maximum = value
end

#minimumObject

Gets the minimum property value. Represents the minimum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.

Returns:

  • a json



129
130
131
# File 'lib/models/workbook_chart_axis.rb', line 129

def minimum
    return @minimum
end

#minimum=(value) ⇒ Object

Sets the minimum property value. Represents the minimum value on the value axis. Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.

Parameters:

  • value

    Value to set for the minimum property.

Returns:

  • a void



137
138
139
# File 'lib/models/workbook_chart_axis.rb', line 137

def minimum=(value)
    @minimum = value
end

#minor_gridlinesObject

Gets the minorGridlines property value. Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only.

Returns:

  • a workbook_chart_gridlines



144
145
146
# File 'lib/models/workbook_chart_axis.rb', line 144

def minor_gridlines
    return @minor_gridlines
end

#minor_gridlines=(value) ⇒ Object

Sets the minorGridlines property value. Returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only.

Parameters:

  • value

    Value to set for the minorGridlines property.

Returns:

  • a void



152
153
154
# File 'lib/models/workbook_chart_axis.rb', line 152

def minor_gridlines=(value)
    @minor_gridlines = value
end

#minor_unitObject

Gets the minorUnit property value. Represents the interval between two minor tick marks. ‘Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.

Returns:

  • a json



159
160
161
# File 'lib/models/workbook_chart_axis.rb', line 159

def minor_unit
    return @minor_unit
end

#minor_unit=(value) ⇒ Object

Sets the minorUnit property value. Represents the interval between two minor tick marks. ‘Can be set to a numeric value or an empty string (for automatic axis values). The returned value is always a number.

Parameters:

  • value

    Value to set for the minorUnit property.

Returns:

  • a void



167
168
169
# File 'lib/models/workbook_chart_axis.rb', line 167

def minor_unit=(value)
    @minor_unit = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/models/workbook_chart_axis.rb', line 175

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("format", @format)
    writer.write_object_value("majorGridlines", @major_gridlines)
    writer.write_object_value("majorUnit", @major_unit)
    writer.write_object_value("maximum", @maximum)
    writer.write_object_value("minimum", @minimum)
    writer.write_object_value("minorGridlines", @minor_gridlines)
    writer.write_object_value("minorUnit", @minor_unit)
    writer.write_object_value("title", @title)
end

#titleObject

Gets the title property value. Represents the axis title. Read-only.

Returns:

  • a workbook_chart_axis_title



191
192
193
# File 'lib/models/workbook_chart_axis.rb', line 191

def title
    return @title
end

#title=(value) ⇒ Object

Sets the title property value. Represents the axis title. Read-only.

Parameters:

  • value

    Value to set for the title property.

Returns:

  • a void



199
200
201
# File 'lib/models/workbook_chart_axis.rb', line 199

def title=(value)
    @title = value
end