Class: Documentation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#documentsObject (readonly)

Returns the value of attribute documents.



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

def documents
  @documents
end

#faqsObject (readonly)

Returns the value of attribute faqs.



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

def faqs
  @faqs
end