Class: DeviceManagedApp

Inherits:
Object
  • Object
show all
Defined in:
lib/moki_ruby/device_managed_app.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#app_identifierObject

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_flagsObject

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

#statusObject

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_hashObject



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