Class: Caliper::Entities::DigitalResource
- Inherits:
-
EntityBase
- Object
- Entity
- EntityBase
- Caliper::Entities::DigitalResource
- Includes:
- SchemaDotOrg::CreativeWork, Targetable
- Defined in:
- lib/caliper/entities/digital_resource.rb
Direct Known Subclasses
Assignable::AssignableDigitalResource, Media::MediaLocation, Media::MediaObject, Reading::EPubVolume, Reading::EpubChapter, Reading::EpubPart, Reading::EpubSubChapter, Reading::Frame, Reading::WebPage
Instance Attribute Summary collapse
-
#alignedLearningObjective ⇒ Object
Returns the value of attribute alignedLearningObjective.
-
#datePublished ⇒ Object
Returns the value of attribute datePublished.
-
#isPartOf ⇒ Object
Returns the value of attribute isPartOf.
-
#keywords ⇒ Object
Returns the value of attribute keywords.
-
#objectType ⇒ Object
Returns the value of attribute objectType.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from EntityBase
#dateCreated, #dateModified, #description, #extensions, #name
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize ⇒ DigitalResource
constructor
A new instance of DigitalResource.
Methods included from Jsonable
#eql?, #from_json, included, #to_json
Constructor Details
#initialize ⇒ DigitalResource
Returns a new instance of DigitalResource.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/caliper/entities/digital_resource.rb', line 35 def initialize super @type = Caliper::Entities::EntityType::DIGITAL_RESOURCE @alignedLearningObjective = Array.new @objectType = Array.new @keywords = Array.new @datePublished = nil @isPartOf = nil @version = nil end |
Instance Attribute Details
#alignedLearningObjective ⇒ Object
Returns the value of attribute alignedLearningObjective.
33 34 35 |
# File 'lib/caliper/entities/digital_resource.rb', line 33 def alignedLearningObjective @alignedLearningObjective end |
#datePublished ⇒ Object
Returns the value of attribute datePublished.
33 34 35 |
# File 'lib/caliper/entities/digital_resource.rb', line 33 def datePublished @datePublished end |
#isPartOf ⇒ Object
Returns the value of attribute isPartOf.
33 34 35 |
# File 'lib/caliper/entities/digital_resource.rb', line 33 def isPartOf @isPartOf end |
#keywords ⇒ Object
Returns the value of attribute keywords.
33 34 35 |
# File 'lib/caliper/entities/digital_resource.rb', line 33 def keywords @keywords end |
#objectType ⇒ Object
Returns the value of attribute objectType.
33 34 35 |
# File 'lib/caliper/entities/digital_resource.rb', line 33 def objectType @objectType end |
#version ⇒ Object
Returns the value of attribute version.
33 34 35 |
# File 'lib/caliper/entities/digital_resource.rb', line 33 def version @version end |