Class: TemplateGroupDetails

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, transformer) ⇒ TemplateGroupDetails

Returns a new instance of TemplateGroupDetails.



13
14
15
16
17
18
19
20
21
22
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 13

def initialize(scopeId, templateGroup, transformer)
    @templateGroup = templateGroup
    @scopeId = scopeId
    @transformer = transformer
    @templates = []
    @body = JSON.parse "{}"
    @body["templateGroup"] = templateGroup
    @body["scopeId"] = scopeId
    @body["transformer"] = transformer
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



7
8
9
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 7

def body
  @body
end

#scopeIdObject (readonly)

Returns the value of attribute scopeId.



9
10
11
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 9

def scopeId
  @scopeId
end

#templateGroupObject (readonly)

Returns the value of attribute templateGroup.



8
9
10
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 8

def templateGroup
  @templateGroup
end

#templatesObject (readonly)

Returns the value of attribute templates.



11
12
13
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 11

def templates
  @templates
end

#transformerObject (readonly)

Returns the value of attribute transformer.



10
11
12
# File 'lib/apollo_commons_ruby/TemplateDebug.rb', line 10

def transformer
  @transformer
end