Class: Verso::Frontmatter
- Includes:
- HTTPGettable
- Defined in:
- lib/verso/frontmatter.rb
Overview
Frontmatter resource
Frontmatter for Course framework.
Instance Attribute Summary collapse
-
#acknowledgments_text ⇒ String
readonly
HTML-formatted acknowledgments.
-
#attribution_block ⇒ String
readonly
HTML-formatted attribution.
-
#code ⇒ String
readonly
Course code.
-
#copyright_year ⇒ String
readonly
Copyright year.
-
#developed_by ⇒ String
readonly
HTML-formatted developed-by text.
-
#developed_for ⇒ String
readonly
HTML-formatted developed-for text.
-
#edition ⇒ String
readonly
Edition year.
-
#foreword_text ⇒ String
readonly
HTML-formatted foreword.
-
#introduction_text ⇒ String
readonly
HTML-formatted introduction_text.
-
#notice_block ⇒ String
readonly
HTML formatted notice_block.
Attributes inherited from Base
Method Summary
Methods inherited from Base
Constructor Details
This class inherits a constructor from Verso::Base
Instance Attribute Details
#acknowledgments_text ⇒ String (readonly)
Returns HTML-formatted acknowledgments.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#attribution_block ⇒ String (readonly)
Returns HTML-formatted attribution.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#code ⇒ String (readonly)
Returns Course code.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#copyright_year ⇒ String (readonly)
Returns Copyright year.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#developed_by ⇒ String (readonly)
Returns HTML-formatted developed-by text.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#developed_for ⇒ String (readonly)
Returns HTML-formatted developed-for text.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#edition ⇒ String (readonly)
Returns Edition year.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#foreword_text ⇒ String (readonly)
Returns HTML-formatted foreword.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#introduction_text ⇒ String (readonly)
Returns HTML-formatted introduction_text.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |
#notice_block ⇒ String (readonly)
Returns HTML formatted notice_block.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/verso/frontmatter.rb', line 34 class Frontmatter < Verso::Base include HTTPGettable attr_reader :acknowledgments_text, :attribution_block, :code, :copyright_year, :developed_by, :developed_for, :edition, :foreword_text, :introduction_text, :notice_block private def fetch super[:frontmatter] end def path "/courses/#{code},#{edition}/frontmatter" end end |