Class: OpenStax::Content::Fragment::Reading

Inherits:
Html show all
Defined in:
lib/openstax/content/fragment/reading.rb

Instance Attribute Summary

Attributes inherited from Html

#to_html

Attributes inherited from OpenStax::Content::Fragment

#labels, #node_id, #title

Instance Method Summary collapse

Methods inherited from Html

#append, #blank?, #has_css?, #html?, #instance_variables, #node, #transform_links!

Methods inherited from OpenStax::Content::Fragment

#blank?, #html?

Constructor Details

#initialize(node:, title: nil, labels: nil, reference_view_url: nil) ⇒ Reading

Returns a new instance of Reading.



4
5
6
7
8
# File 'lib/openstax/content/fragment/reading.rb', line 4

def initialize(node:, title: nil, labels: nil, reference_view_url: nil)
  super node: node, title: title, labels: labels

  @reference_view_url = reference_view_url
end