Class: OneLogin::Api::Models::Device

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Device

Returns a new instance of Device.


9
10
11
12
13
14
# File 'lib/onelogin/api/models/device.rb', line 9

def initialize(data)
  @id = data['device_id']
  @type = data['device_type'].to_s
  @duo_api_hostname = data['duo_api_hostname']
  @duo_sig_request = data['duo_sig_request']
end

Instance Attribute Details

#duo_api_hostnameObject

Returns the value of attribute duo_api_hostname.


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

def duo_api_hostname
  @duo_api_hostname
end

#duo_sig_requestObject

Returns the value of attribute duo_sig_request.


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

def duo_sig_request
  @duo_sig_request
end

#idObject

Returns the value of attribute id.


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

def id
  @id
end

#typeObject

Returns the value of attribute type.


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

def type
  @type
end