Method: OData::NavigationProperty#initialize

Defined in:
lib/odata/navigation_property.rb

#initialize(options = {}) ⇒ NavigationProperty

Returns a new instance of NavigationProperty.



9
10
11
12
13
14
15
# File 'lib/odata/navigation_property.rb', line 9

def initialize(options = {})
  @name           = options[:name]
  @type           = options[:type]
  @nullable       = options[:nullable].nil? ? true : false
  @contain_target = options[:contain_target] || false
  @partner        = options[:partner]
end