Class: Documentation
- Inherits:
-
Object
- Object
- Documentation
- Includes:
- ActiveModel::Serialization
- Defined in:
- app/models/documentation.rb
Overview
Tuple of (documents, faqs) collected from a product line or product
detail page and serialized to JSON for the public website's product
documentation tab.
Instance Attribute Summary collapse
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
-
#faqs ⇒ Object
readonly
Returns the value of attribute faqs.
Instance Method Summary collapse
-
#initialize(docs, faqs) ⇒ Documentation
constructor
A new instance of Documentation.
Constructor Details
#initialize(docs, faqs) ⇒ Documentation
Returns a new instance of Documentation.
10 11 12 13 |
# File 'app/models/documentation.rb', line 10 def initialize(docs, faqs) @documents = docs @faqs = faqs end |
Instance Attribute Details
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
8 9 10 |
# File 'app/models/documentation.rb', line 8 def documents @documents end |
#faqs ⇒ Object (readonly)
Returns the value of attribute faqs.
8 9 10 |
# File 'app/models/documentation.rb', line 8 def faqs @faqs end |