Class: AccessGrid::TemplateInfo
- Inherits:
-
Object
- Object
- AccessGrid::TemplateInfo
- Defined in:
- lib/accessgrid/console.rb
Overview
Minimal template info used within PassTemplatePair.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
Instance Method Summary collapse
-
#initialize(data) ⇒ TemplateInfo
constructor
A new instance of TemplateInfo.
Constructor Details
#initialize(data) ⇒ TemplateInfo
Returns a new instance of TemplateInfo.
198 199 200 201 202 |
# File 'lib/accessgrid/console.rb', line 198 def initialize(data) @id = data['id'] @name = data['name'] @platform = data['platform'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
196 197 198 |
# File 'lib/accessgrid/console.rb', line 196 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
196 197 198 |
# File 'lib/accessgrid/console.rb', line 196 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
196 197 198 |
# File 'lib/accessgrid/console.rb', line 196 def platform @platform end |