Class: DeviceManagedApp
- Inherits:
-
Object
- Object
- DeviceManagedApp
- Defined in:
- lib/moki_ruby/device_managed_app.rb
Instance Attribute Summary collapse
-
#app_identifier ⇒ Object
Returns the value of attribute app_identifier.
-
#management_flags ⇒ Object
Returns the value of attribute management_flags.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#app_identifier ⇒ Object
Returns the value of attribute app_identifier.
2 3 4 |
# File 'lib/moki_ruby/device_managed_app.rb', line 2 def app_identifier @app_identifier end |
#management_flags ⇒ Object
Returns the value of attribute management_flags.
2 3 4 |
# File 'lib/moki_ruby/device_managed_app.rb', line 2 def management_flags @management_flags end |
#status ⇒ Object
Returns the value of attribute status.
2 3 4 |
# File 'lib/moki_ruby/device_managed_app.rb', line 2 def status @status end |
Class Method Details
.from_hash(input_hash) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/moki_ruby/device_managed_app.rb', line 4 def self.from_hash(input_hash) new_profile = self.new new_profile.status = input_hash['Status'] new_profile.app_identifier = input_hash['appIdentifier'] new_profile.management_flags = input_hash['ManagementFlags'] new_profile end |
Instance Method Details
#to_hash ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/moki_ruby/device_managed_app.rb', line 13 def to_hash { "Status" => self.status, "appIdentifier" => self.app_identifier, "ManagementFlags" => self.management_flags } end |