Class: OneLogin::Api::Models::Device
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::Device
- Defined in:
- lib/onelogin/api/models/device.rb
Instance Attribute Summary collapse
-
#duo_api_hostname ⇒ Object
Returns the value of attribute duo_api_hostname.
-
#duo_sig_request ⇒ Object
Returns the value of attribute duo_sig_request.
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Device
constructor
A new instance of Device.
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_hostname ⇒ Object
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_request ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/onelogin/api/models/device.rb', line 7 def id @id end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/onelogin/api/models/device.rb', line 7 def type @type end |