Method: Frodo::Entity#initialize

Defined in:
lib/frodo/entity.rb

#initialize(options = {}) ⇒ Entity

Initializes a bare Entity

Parameters:

  • (defaults to: {})


29
30
31
32
33
34
35
36
37
# File 'lib/frodo/entity.rb', line 29

def initialize(options = {})
  @id = options[:id]
  @type = options[:type]
  @service_name = options[:service_name]
  @entity_set = options[:entity_set]
  @context = options[:context]
  @links = options[:links]
  @errors = []
end