Class: AccessGrid::PassTemplatePair

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

Overview

Represents a paired iOS and Android template configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ PassTemplatePair

Returns a new instance of PassTemplatePair.



179
180
181
182
183
184
185
186
187
# File 'lib/accessgrid/console.rb', line 179

def initialize(data)
  android_template = data['android_template']
  ios_template = data['ios_template']
  @id = data['id']
  @name = data['name']
  @created_at = data['created_at']
  @android_template = android_template ? TemplateInfo.new(android_template) : nil
  @ios_template = ios_template ? TemplateInfo.new(ios_template) : nil
end

Instance Attribute Details

#android_templateObject (readonly)

Returns the value of attribute android_template.



177
178
179
# File 'lib/accessgrid/console.rb', line 177

def android_template
  @android_template
end

#created_atObject (readonly)

Returns the value of attribute created_at.



177
178
179
# File 'lib/accessgrid/console.rb', line 177

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



177
178
179
# File 'lib/accessgrid/console.rb', line 177

def id
  @id
end

#ios_templateObject (readonly)

Returns the value of attribute ios_template.



177
178
179
# File 'lib/accessgrid/console.rb', line 177

def ios_template
  @ios_template
end

#nameObject (readonly)

Returns the value of attribute name.



177
178
179
# File 'lib/accessgrid/console.rb', line 177

def name
  @name
end