Class: MicrosoftGraph::Models::Planner
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/planner.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
-
#buckets ⇒ Object
Gets the buckets property value.
-
#buckets=(value) ⇒ Object
Sets the buckets property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new planner and sets the default values.
-
#plans ⇒ Object
Gets the plans property value.
-
#plans=(value) ⇒ Object
Sets the plans property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tasks ⇒ Object
Gets the tasks property value.
-
#tasks=(value) ⇒ Object
Sets the tasks property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new planner and sets the default values.
37 38 39 |
# File 'lib/models/planner.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
45 46 47 48 |
# File 'lib/models/planner.rb', line 45 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Planner.new end |
Instance Method Details
#buckets ⇒ Object
Gets the buckets property value. Read-only. Nullable. Returns a collection of the specified buckets
22 23 24 |
# File 'lib/models/planner.rb', line 22 def buckets return @buckets end |
#buckets=(value) ⇒ Object
Sets the buckets property value. Read-only. Nullable. Returns a collection of the specified buckets
30 31 32 |
# File 'lib/models/planner.rb', line 30 def buckets=(value) @buckets = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/planner.rb', line 53 def get_field_deserializers() return super.merge({ "buckets" => lambda {|n| @buckets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerBucket.create_from_discriminator_value(pn) }) }, "plans" => lambda {|n| @plans = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerPlan.create_from_discriminator_value(pn) }) }, "tasks" => lambda {|n| @tasks = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PlannerTask.create_from_discriminator_value(pn) }) }, }) end |
#plans ⇒ Object
Gets the plans property value. Read-only. Nullable. Returns a collection of the specified plans
64 65 66 |
# File 'lib/models/planner.rb', line 64 def plans return @plans end |
#plans=(value) ⇒ Object
Sets the plans property value. Read-only. Nullable. Returns a collection of the specified plans
72 73 74 |
# File 'lib/models/planner.rb', line 72 def plans=(value) @plans = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
80 81 82 83 84 85 86 |
# File 'lib/models/planner.rb', line 80 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("buckets", @buckets) writer.write_collection_of_object_values("plans", @plans) writer.write_collection_of_object_values("tasks", @tasks) end |
#tasks ⇒ Object
Gets the tasks property value. Read-only. Nullable. Returns a collection of the specified tasks
91 92 93 |
# File 'lib/models/planner.rb', line 91 def tasks return @tasks end |
#tasks=(value) ⇒ Object
Sets the tasks property value. Read-only. Nullable. Returns a collection of the specified tasks
99 100 101 |
# File 'lib/models/planner.rb', line 99 def tasks=(value) @tasks = value end |