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.



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

#idObject (readonly)

Returns the value of attribute id.



196
197
198
# File 'lib/accessgrid/console.rb', line 196

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



196
197
198
# File 'lib/accessgrid/console.rb', line 196

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform.



196
197
198
# File 'lib/accessgrid/console.rb', line 196

def platform
  @platform
end