Class: LinkedRails::CreativeWork
- Inherits:
-
Object
- Object
- LinkedRails::CreativeWork
- Includes:
- ActiveModel::Model, Model
- Defined in:
- app/models/linked_rails/creative_work.rb
Constant Summary
Constants included from Model::Collections
Model::Collections::COLLECTION_CUSTOMIZABLE_OPTIONS, Model::Collections::COLLECTION_OPTIONS, Model::Collections::COLLECTION_STATIC_OPTIONS
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
Methods included from Model::Singularable
#root_relative_iri, #root_relative_singular_iri, #singular_iri, #singular_iri_opts, #singular_iri_template, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Menuable
Methods included from Model::Iri
#anonymous_iri, #anonymous_iri?, #iri_elements, #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, #collection_iri, #collection_options_for, #collection_root_relative_iri, #parent_collections
Methods included from Model::Actionable
#action, #action_list, #action_triples, #actions, #collection_actions, #favorite_actions
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 |