Class: MokiRuby::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.



3
4
5
# File 'lib/moki_ruby/device_managed_app.rb', line 3

def app_identifier
  @app_identifier
end

#management_flagsObject

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

#statusObject

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_hashObject



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