Class: Templates
- Inherits:
-
Object
- Object
- Templates
- Defined in:
- lib/apollo_commons_ruby/TemplateDebug.rb
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#dataTemplate ⇒ Object
readonly
Returns the value of attribute dataTemplate.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#presentation ⇒ Object
readonly
Returns the value of attribute presentation.
-
#scopeId ⇒ Object
readonly
Returns the value of attribute scopeId.
-
#templateGroup ⇒ Object
readonly
Returns the value of attribute templateGroup.
-
#templateName ⇒ Object
readonly
Returns the value of attribute templateName.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(scopeId, templateGroup, language, view, templateName, presentation, dataTemplate, attrs) ⇒ Templates
constructor
A new instance of Templates.
Constructor Details
#initialize(scopeId, templateGroup, language, view, templateName, presentation, dataTemplate, attrs) ⇒ Templates
Returns a new instance of Templates.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 36 def initialize(scopeId, templateGroup, language, view, templateName, presentation, dataTemplate, attrs) @templateGroup = templateGroup @scopeId = scopeId @language = language @view = view @templateName = templateName @presentation = presentation @dataTemplate = dataTemplate @attrs = attrs @body = JSON.parse "{}" @body["templateGroup"] = templateGroup @body["scopeId"] = scopeId @body["language"] = language @body["view"] = view @body["templateName"] = templateName @body["presentation"] = presentation @body["dataTemplate"] = dataTemplate @body["attrs"] = attrs end |
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
33 34 35 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 33 def attrs @attrs end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
34 35 36 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 34 def body @body end |
#dataTemplate ⇒ Object (readonly)
Returns the value of attribute dataTemplate.
32 33 34 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 32 def dataTemplate @dataTemplate end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
28 29 30 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 28 def language @language end |
#presentation ⇒ Object (readonly)
Returns the value of attribute presentation.
31 32 33 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 31 def presentation @presentation end |
#scopeId ⇒ Object (readonly)
Returns the value of attribute scopeId.
27 28 29 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 27 def scopeId @scopeId end |
#templateGroup ⇒ Object (readonly)
Returns the value of attribute templateGroup.
26 27 28 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 26 def templateGroup @templateGroup end |
#templateName ⇒ Object (readonly)
Returns the value of attribute templateName.
30 31 32 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 30 def templateName @templateName end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
29 30 31 |
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 29 def view @view end |