Class: Caliper::Entities::EntityBase

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

Instance Attribute Summary collapse

Attributes inherited from Entity

#context, #id, #type

Instance Method Summary collapse

Methods included from Jsonable

#eql?, #from_json, included, #to_json

Constructor Details

#initializeEntityBase

Returns a new instance of EntityBase.



36
37
38
39
40
41
42
43
# File 'lib/caliper/entities/entity_base.rb', line 36

def initialize()
  super
  @name = nil
  @description = nil
  @extensions = {}
  @dateCreated = nil
  @dateModified = nil
end

Instance Attribute Details

#dateCreatedObject

Returns the value of attribute dateCreated.



34
35
36
# File 'lib/caliper/entities/entity_base.rb', line 34

def dateCreated
  @dateCreated
end

#dateModifiedObject

Returns the value of attribute dateModified.



34
35
36
# File 'lib/caliper/entities/entity_base.rb', line 34

def dateModified
  @dateModified
end

#descriptionObject

Returns the value of attribute description.



34
35
36
# File 'lib/caliper/entities/entity_base.rb', line 34

def description
  @description
end

#extensionsObject

Returns the value of attribute extensions.



34
35
36
# File 'lib/caliper/entities/entity_base.rb', line 34

def extensions
  @extensions
end

#nameObject

Returns the value of attribute name.



34
35
36
# File 'lib/caliper/entities/entity_base.rb', line 34

def name
  @name
end