Class: Templates

Inherits:
Object
  • Object
show all
Defined in:
lib/apollo_commons_ruby/TemplateDebug.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attrsObject (readonly)

Returns the value of attribute attrs.



33
34
35
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 33

def attrs
  @attrs
end

#bodyObject (readonly)

Returns the value of attribute body.



34
35
36
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 34

def body
  @body
end

#dataTemplateObject (readonly)

Returns the value of attribute dataTemplate.



32
33
34
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 32

def dataTemplate
  @dataTemplate
end

#languageObject (readonly)

Returns the value of attribute language.



28
29
30
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 28

def language
  @language
end

#presentationObject (readonly)

Returns the value of attribute presentation.



31
32
33
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 31

def presentation
  @presentation
end

#scopeIdObject (readonly)

Returns the value of attribute scopeId.



27
28
29
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 27

def scopeId
  @scopeId
end

#templateGroupObject (readonly)

Returns the value of attribute templateGroup.



26
27
28
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 26

def templateGroup
  @templateGroup
end

#templateNameObject (readonly)

Returns the value of attribute templateName.



30
31
32
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 30

def templateName
  @templateName
end

#viewObject (readonly)

Returns the value of attribute view.



29
30
31
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 29

def view
  @view
end