class OData::AbstractSchema::NavigationProperty

Attributes

association[RW]
entity_type[R]
from_end[RW]
to_end[RW]

Public Class Methods

new(schema, entity_type, name, association, options = {}) click to toggle source
Calls superclass method
# File lib/o_data/abstract_schema/navigation_property.rb, line 7
def initialize(schema, entity_type, name, association, options = {})
  super(schema, name)

  @entity_type = entity_type
  @association = association

  options.reverse_merge!(:source => true)

  if options[:source]
    @from_end = @association.from_end
    @to_end = @association.to_end
  else
    @to_end = @association.to_end
    @from_end = @association.from_end
  end
end

Public Instance Methods

find_all(one, key_values = {}) click to toggle source
# File lib/o_data/abstract_schema/navigation_property.rb, line 28
def find_all(one, key_values = {})
  nil
end
find_one(one, key_value = nil) click to toggle source
# File lib/o_data/abstract_schema/navigation_property.rb, line 32
def find_one(one, key_value = nil)
  nil
end
return_type() click to toggle source
# File lib/o_data/abstract_schema/navigation_property.rb, line 24
def return_type
  @to_end.return_type
end