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.
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_template ⇒ Object (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_at ⇒ Object (readonly)
Returns the value of attribute created_at.
177 178 179 |
# File 'lib/accessgrid/console.rb', line 177 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
177 178 179 |
# File 'lib/accessgrid/console.rb', line 177 def id @id end |
#ios_template ⇒ Object (readonly)
Returns the value of attribute ios_template.
177 178 179 |
# File 'lib/accessgrid/console.rb', line 177 def ios_template @ios_template end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
177 178 179 |
# File 'lib/accessgrid/console.rb', line 177 def name @name end |