Class: OneLogin::Api::Models::EmbedApp

Inherits:
Object
  • Object
show all
Defined in:
lib/onelogin/api/models/embed_app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_requiredObject

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

#iconObject

Returns the value of attribute icon.


7
8
9
# File 'lib/onelogin/api/models/embed_app.rb', line 7

def icon
  @icon
end

#idObject

Returns the value of attribute id.


7
8
9
# File 'lib/onelogin/api/models/embed_app.rb', line 7

def id
  @id
end

#login_idObject

Returns the value of attribute login_id.


7
8
9
# File 'lib/onelogin/api/models/embed_app.rb', line 7

def 
  @login_id
end

#nameObject

Returns the value of attribute name.


7
8
9
# File 'lib/onelogin/api/models/embed_app.rb', line 7

def name
  @name
end

#personalObject

Returns the value of attribute personal.


7
8
9
# File 'lib/onelogin/api/models/embed_app.rb', line 7

def personal
  @personal
end

#provisionedObject

Returns the value of attribute provisioned.


7
8
9
# File 'lib/onelogin/api/models/embed_app.rb', line 7

def provisioned
  @provisioned
end