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