Class: AccessGrid::TemplateInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/accessgrid/console.rb

Overview

Minimal template info used within PassTemplatePair.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



192
193
194
# File 'lib/accessgrid/console.rb', line 192

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



192
193
194
# File 'lib/accessgrid/console.rb', line 192

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform.



192
193
194
# File 'lib/accessgrid/console.rb', line 192

def platform
  @platform
end