Method: OData::Entity#initialize

Defined in:
lib/odata/entity.rb

#initialize(options = {}) ⇒ Entity

Initializes a bare Entity

Parameters:

  • options (Hash) (defaults to: {})


21
22
23
24
25
26
27
# File 'lib/odata/entity.rb', line 21

def initialize(options = {})
  @type = options[:type]
  @namespace = options[:namespace]
  @service_name = options[:service_name]
  @links = options[:links] || {}
  @errors = []
end