Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::YieldDisc::YieldDiscPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::YieldDisc::YieldDiscPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new yieldDiscPostRequestBody and sets the default values.
-
#maturity ⇒ Object
Gets the maturity property value.
-
#maturity=(value) ⇒ Object
Sets the maturity property value.
-
#pr ⇒ Object
Gets the pr property value.
-
#pr=(value) ⇒ Object
Sets the pr property value.
-
#redemption ⇒ Object
Gets the redemption property value.
-
#redemption=(value) ⇒ Object
Sets the redemption 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 yieldDiscPostRequestBody and sets the default values.
74 75 76 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_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/yield_disc/yield_disc_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 YieldDiscPostRequestBody.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/yield_disc/yield_disc_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/yield_disc/yield_disc_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/yield_disc/yield_disc_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/yield_disc/yield_disc_post_request_body.rb', line 67 def basis=(value) @basis = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
90 91 92 93 94 95 96 97 98 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 90 def get_field_deserializers() return { "basis" => lambda {|n| @basis = 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) }) }, "pr" => lambda {|n| @pr = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "redemption" => lambda {|n| @redemption = 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 |
#maturity ⇒ Object
Gets the maturity property value. The maturity property
103 104 105 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 103 def maturity return @maturity end |
#maturity=(value) ⇒ Object
Sets the maturity property value. The maturity property
111 112 113 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 111 def maturity=(value) @maturity = value end |
#pr ⇒ Object
Gets the pr property value. The pr property
118 119 120 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 118 def pr return @pr end |
#pr=(value) ⇒ Object
Sets the pr property value. The pr property
126 127 128 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 126 def pr=(value) @pr = value end |
#redemption ⇒ Object
Gets the redemption property value. The redemption property
133 134 135 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 133 def redemption return @redemption end |
#redemption=(value) ⇒ Object
Sets the redemption property value. The redemption property
141 142 143 |
# File 'lib/drives/item/items/item/workbook/functions/yield_disc/yield_disc_post_request_body.rb', line 141 def redemption=(value) @redemption = 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/yield_disc/yield_disc_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("maturity", @maturity) writer.write_object_value("pr", @pr) writer.write_object_value("redemption", @redemption) 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/yield_disc/yield_disc_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/yield_disc/yield_disc_post_request_body.rb', line 170 def settlement=(value) @settlement = value end |