Class: Caliper::Entities::Entity

Inherits:
Object
  • Object
show all
Includes:
Jsonable, SchemaDotOrg::Thing
Defined in:
lib/caliper/entities/entity.rb

Direct Known Subclasses

EntityBase

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Jsonable

#eql?, #from_json, included, #to_json

Constructor Details

#initializeEntity

Returns a new instance of Entity.



35
36
37
38
39
# File 'lib/caliper/entities/entity.rb', line 35

def initialize()
  @context = Caliper::Context::Context::CONTEXT
  @id = nil
  @type = Caliper::Entities::EntityType::ENTITY
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



33
34
35
# File 'lib/caliper/entities/entity.rb', line 33

def context
  @context
end

#idObject

Returns the value of attribute id.



33
34
35
# File 'lib/caliper/entities/entity.rb', line 33

def id
  @id
end

#typeObject

Returns the value of attribute type.



33
34
35
# File 'lib/caliper/entities/entity.rb', line 33

def type
  @type
end