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.
194 195 196 197 198 |
# File 'lib/accessgrid/console.rb', line 194 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.
192 193 194 |
# File 'lib/accessgrid/console.rb', line 192 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
192 193 194 |
# File 'lib/accessgrid/console.rb', line 192 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
192 193 194 |
# File 'lib/accessgrid/console.rb', line 192 def platform @platform end |