Class: LinkedRails::CreativeWork
- Inherits:
-
Object
- Object
- LinkedRails::CreativeWork
- Includes:
- ActiveModel::Model, Model
- Defined in:
- app/models/linked_rails/creative_work.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
- #iri(_opts = {}) ⇒ Object
-
#name ⇒ Object
Returns the value of attribute name.
-
#text ⇒ Object
Returns the value of attribute text.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Methods included from Model
#build_child, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Iri
#anonymous_iri, #anonymous_iri?, #iri_opts, #rdf_type, #reload, #root_relative_iri, #route_fragment
Methods included from Model::Enhancements
Methods included from Model::Dirty
#previous_changes_by_predicate, #previously_changed_relations
Methods included from Model::Collections
#collection_for, #parent_collections
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'app/models/linked_rails/creative_work.rb', line 9 def description @description end |
#iri(_opts = {}) ⇒ Object
11 12 13 |
# File 'app/models/linked_rails/creative_work.rb', line 11 def iri(_opts = {}) @iri ||= RDF::Node.new end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'app/models/linked_rails/creative_work.rb', line 9 def name @name end |
#text ⇒ Object
Returns the value of attribute text.
9 10 11 |
# File 'app/models/linked_rails/creative_work.rb', line 9 def text @text end |
#url ⇒ Object
Returns the value of attribute url.
9 10 11 |
# File 'app/models/linked_rails/creative_work.rb', line 9 def url @url end |
Class Method Details
.iri ⇒ Object
16 17 18 |
# File 'app/models/linked_rails/creative_work.rb', line 16 def iri Vocab.schema.CreativeWork end |