Class: ViewGroupComponent
- Inherits:
-
Object
- Object
- ViewGroupComponent
- Defined in:
- lib/apollo_commons_ruby/ViewGroupComponent.rb
Instance Attribute Summary collapse
-
#projectId ⇒ Object
readonly
Returns the value of attribute projectId.
-
#requestBody ⇒ Object
readonly
Returns the value of attribute requestBody.
-
#tenantId ⇒ Object
readonly
Returns the value of attribute tenantId.
-
#viewGroupComponent ⇒ Object
readonly
Returns the value of attribute viewGroupComponent.
-
#viewGroupDefinition ⇒ Object
readonly
Returns the value of attribute viewGroupDefinition.
Instance Method Summary collapse
-
#initialize(configuration_json, view_group_definition, view_group_component) ⇒ ViewGroupComponent
constructor
A new instance of ViewGroupComponent.
Constructor Details
#initialize(configuration_json, view_group_definition, view_group_component) ⇒ ViewGroupComponent
Returns a new instance of ViewGroupComponent.
21 22 23 24 25 26 27 28 |
# File 'lib/apollo_commons_ruby/ViewGroupComponent.rb', line 21 def initialize(configuration_json, view_group_definition, view_group_component) @tenantId = configuration_json["tenantId"] @projectId = configuration_json["projectId"] @viewGroupDefinition = view_group_definition @viewGroupComponent = view_group_component view_group_component_properties = File.read("./configs/" + view_group_definition + "/" + view_group_component + "/view_group_component_properties.json") @requestBody = JSON.parse view_group_component_properties end |
Instance Attribute Details
#projectId ⇒ Object (readonly)
Returns the value of attribute projectId.
16 17 18 |
# File 'lib/apollo_commons_ruby/ViewGroupComponent.rb', line 16 def projectId @projectId end |
#requestBody ⇒ Object (readonly)
Returns the value of attribute requestBody.
19 20 21 |
# File 'lib/apollo_commons_ruby/ViewGroupComponent.rb', line 19 def requestBody @requestBody end |
#tenantId ⇒ Object (readonly)
Returns the value of attribute tenantId.
15 16 17 |
# File 'lib/apollo_commons_ruby/ViewGroupComponent.rb', line 15 def tenantId @tenantId end |
#viewGroupComponent ⇒ Object (readonly)
Returns the value of attribute viewGroupComponent.
18 19 20 |
# File 'lib/apollo_commons_ruby/ViewGroupComponent.rb', line 18 def viewGroupComponent @viewGroupComponent end |
#viewGroupDefinition ⇒ Object (readonly)
Returns the value of attribute viewGroupDefinition.
17 18 19 |
# File 'lib/apollo_commons_ruby/ViewGroupComponent.rb', line 17 def viewGroupDefinition @viewGroupDefinition end |