Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Received::ReceivedPostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new receivedPostRequestBody and sets the default values.



74
75
76
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 74

def initialize()
    @additional_data = Hash.new
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 received_post_request_body

Raises:

  • (StandardError)


82
83
84
85
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 82

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



44
45
46
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 44

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



52
53
54
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 52

def additional_data=(value)
    @additional_data = value
end

#basisObject

Gets the basis property value. The basis property

Returns:

  • a json



59
60
61
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 59

def basis
    return @basis
end

#basis=(value) ⇒ Object

Sets the basis property value. The basis property

Parameters:

  • value

    Value to set for the basis property.

Returns:

  • a void



67
68
69
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 67

def basis=(value)
    @basis = value
end

#discountObject

Gets the discount property value. The discount property

Returns:

  • a json



90
91
92
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 90

def discount
    return @discount
end

#discount=(value) ⇒ Object

Sets the discount property value. The discount property

Parameters:

  • value

    Value to set for the discount property.

Returns:

  • a void



98
99
100
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 98

def discount=(value)
    @discount = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



105
106
107
108
109
110
111
112
113
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 105

def get_field_deserializers()
    return {
        "basis" => lambda {|n| @basis = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "discount" => lambda {|n| @discount = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "investment" => lambda {|n| @investment = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "maturity" => lambda {|n| @maturity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
        "settlement" => lambda {|n| @settlement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
    }
end

#investmentObject

Gets the investment property value. The investment property

Returns:

  • a json



118
119
120
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 118

def investment
    return @investment
end

#investment=(value) ⇒ Object

Sets the investment property value. The investment property

Parameters:

  • value

    Value to set for the investment property.

Returns:

  • a void



126
127
128
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 126

def investment=(value)
    @investment = value
end

#maturityObject

Gets the maturity property value. The maturity property

Returns:

  • a json



133
134
135
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 133

def maturity
    return @maturity
end

#maturity=(value) ⇒ Object

Sets the maturity property value. The maturity property

Parameters:

  • value

    Value to set for the maturity property.

Returns:

  • a void



141
142
143
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 141

def maturity=(value)
    @maturity = 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)


149
150
151
152
153
154
155
156
157
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 149

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_object_value("basis", @basis)
    writer.write_object_value("discount", @discount)
    writer.write_object_value("investment", @investment)
    writer.write_object_value("maturity", @maturity)
    writer.write_object_value("settlement", @settlement)
    writer.write_additional_data(@additional_data)
end

#settlementObject

Gets the settlement property value. The settlement property

Returns:

  • a json



162
163
164
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 162

def settlement
    return @settlement
end

#settlement=(value) ⇒ Object

Sets the settlement property value. The settlement property

Parameters:

  • value

    Value to set for the settlement property.

Returns:

  • a void



170
171
172
# File 'lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb', line 170

def settlement=(value)
    @settlement = value
end