Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Received::ReceivedPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Received::ReceivedPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/received/received_post_request_body.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#basis ⇒ Object
Gets the basis property value.
-
#basis=(value) ⇒ Object
Sets the basis property value.
-
#discount ⇒ Object
Gets the discount property value.
-
#discount=(value) ⇒ Object
Sets the discount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new receivedPostRequestBody and sets the default values.
-
#investment ⇒ Object
Gets the investment property value.
-
#investment=(value) ⇒ Object
Sets the investment property value.
-
#maturity ⇒ Object
Gets the maturity property value.
-
#maturity=(value) ⇒ Object
Sets the maturity property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#settlement ⇒ Object
Gets the settlement property value.
-
#settlement=(value) ⇒ Object
Sets the settlement property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
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 |
#basis ⇒ Object
Gets the basis property value. The basis property
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
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 |
#discount ⇒ Object
Gets the discount property value. The discount property
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
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_deserializers ⇒ Object
The deserialization information for the current model
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 |
#investment ⇒ Object
Gets the investment property value. The investment property
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
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 |
#maturity ⇒ Object
Gets the maturity property value. The maturity property
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
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
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 |
#settlement ⇒ Object
Gets the settlement property value. The settlement property
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
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 |