Method: MicrosoftGraph::BaseEntity#initialize

Defined in:
lib/microsoft_graph/base_entity.rb

#initialize(options = {}) ⇒ BaseEntity

Returns a new instance of BaseEntity.



7
8
9
10
11
12
13
14
# File 'lib/microsoft_graph/base_entity.rb', line 7

def initialize(options = {})
  @resource_name            = options[:resource_name]
  @parent                   = options[:parent] || options[:graph]
  @graph                    = options[:graph] || parent && parent.graph
  @navigation_property_name = options[:navigation_property_name]
  @persisted                = options[:persisted] || false
  super
end