Class: LinkedRails::WebPage

Inherits:
CreativeWork show all
Defined in:
app/models/linked_rails/web_page.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

Attributes inherited from CreativeWork

#description, #iri, #name, #text, #url

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Model

#build_child

Methods included from Model::Singularable

#root_relative_iri, #root_relative_singular_iri, #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

#menu, #menu_list, #menus

Methods included from Model::IRI

#anonymous_iri, #anonymous_iri?, #iri, #iri_elements, #iri_opts, #rdf_type, #reload, #root_relative_iri, #route_fragment

Methods included from Model::Enhancements

#enhanced_with?

Methods included from Model::Dirty

#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

#cover_photoObject

Returns the value of attribute cover_photo.



6
7
8
# File 'app/models/linked_rails/web_page.rb', line 6

def cover_photo
  @cover_photo
end

#hide_headerObject

Returns the value of attribute hide_header.



6
7
8
# File 'app/models/linked_rails/web_page.rb', line 6

def hide_header
  @hide_header
end

#includesObject

Returns the value of attribute includes.



6
7
8
# File 'app/models/linked_rails/web_page.rb', line 6

def includes
  @includes
end

#widgets=(value) ⇒ Object (writeonly)

Sets the attribute widgets

Parameters:

  • value

    the value to set the attribute widgets to.



5
6
7
# File 'app/models/linked_rails/web_page.rb', line 5

def widgets=(value)
  @widgets = value
end

Class Method Details

.iriObject



13
14
15
# File 'app/models/linked_rails/web_page.rb', line 13

def iri
  Vocab.schema.WebPage
end

Instance Method Details

#widget_sequenceObject



8
9
10
# File 'app/models/linked_rails/web_page.rb', line 8

def widget_sequence
  @widget_sequence ||= LinkedRails::Sequence.new(@widgets, parent: self, scope: false) if @widgets
end