Class: OneLogin::Api::Models::EmbedApp
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::EmbedApp
- Defined in:
- lib/onelogin/api/models/embed_app.rb
Instance Attribute Summary collapse
-
#extension_required ⇒ Object
Returns the value of attribute extension_required.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#id ⇒ Object
Returns the value of attribute id.
-
#login_id ⇒ Object
Returns the value of attribute login_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#personal ⇒ Object
Returns the value of attribute personal.
-
#provisioned ⇒ Object
Returns the value of attribute provisioned.
Instance Method Summary collapse
-
#initialize(data) ⇒ EmbedApp
constructor
A new instance of EmbedApp.
Constructor Details
#initialize(data) ⇒ EmbedApp
Returns a new instance of EmbedApp.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/onelogin/api/models/embed_app.rb', line 9 def initialize(data) @data = data @id = data['id'].to_i @name = data['name'].to_s @icon = data['icon'] @provisioned = data['provisioned'].to_i @extension_required = truthy?('extension_required') @login_id = data['login_id'].to_i @personal = truthy?('personal') end |
Instance Attribute Details
#extension_required ⇒ Object
Returns the value of attribute extension_required.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def extension_required @extension_required end |
#icon ⇒ Object
Returns the value of attribute icon.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def icon @icon end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def id @id end |
#login_id ⇒ Object
Returns the value of attribute login_id.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def login_id @login_id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def name @name end |
#personal ⇒ Object
Returns the value of attribute personal.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def personal @personal end |
#provisioned ⇒ Object
Returns the value of attribute provisioned.
7 8 9 |
# File 'lib/onelogin/api/models/embed_app.rb', line 7 def provisioned @provisioned end |