Class: AccessGrid::PassTemplatePair
- Inherits:
-
Object
- Object
- AccessGrid::PassTemplatePair
- Defined in:
- lib/accessgrid/console.rb
Overview
Represents a paired iOS and Android template configuration.
Instance Attribute Summary collapse
-
#android_template ⇒ Object
readonly
Returns the value of attribute android_template.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ios_template ⇒ Object
readonly
Returns the value of attribute ios_template.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ PassTemplatePair
constructor
A new instance of PassTemplatePair.
Constructor Details
#initialize(data) ⇒ PassTemplatePair
Returns a new instance of PassTemplatePair.
183 184 185 186 187 188 189 190 191 |
# File 'lib/accessgrid/console.rb', line 183 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_template ⇒ Object (readonly)
Returns the value of attribute android_template.
181 182 183 |
# File 'lib/accessgrid/console.rb', line 181 def android_template @android_template end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
181 182 183 |
# File 'lib/accessgrid/console.rb', line 181 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
181 182 183 |
# File 'lib/accessgrid/console.rb', line 181 def id @id end |
#ios_template ⇒ Object (readonly)
Returns the value of attribute ios_template.
181 182 183 |
# File 'lib/accessgrid/console.rb', line 181 def ios_template @ios_template end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
181 182 183 |
# File 'lib/accessgrid/console.rb', line 181 def name @name end |