Class: EmuCtl::Emulator

Inherits:
Object
  • Object
show all
Defined in:
lib/emu_ctl/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(qual, api_lvl, os_name, sdk) ⇒ Emulator

Returns a new instance of Emulator.



45
46
47
48
49
50
# File 'lib/emu_ctl/model.rb', line 45

def initialize(qual, api_lvl, os_name, sdk)
  @qualifier = qual
  @api_lvl = api_lvl
  @os_name = os_name
  @sdk = sdk
end

Instance Attribute Details

#api_lvlObject

Returns the value of attribute api_lvl.



43
44
45
# File 'lib/emu_ctl/model.rb', line 43

def api_lvl
  @api_lvl
end

#os_nameObject

Returns the value of attribute os_name.



43
44
45
# File 'lib/emu_ctl/model.rb', line 43

def os_name
  @os_name
end

#qualifierObject

Returns the value of attribute qualifier.



43
44
45
# File 'lib/emu_ctl/model.rb', line 43

def qualifier
  @qualifier
end

#sdkObject

Returns the value of attribute sdk.



43
44
45
# File 'lib/emu_ctl/model.rb', line 43

def sdk
  @sdk
end

Instance Method Details

#to_sObject



52
53
54
# File 'lib/emu_ctl/model.rb', line 52

def to_s
  "#{qualifier}: Running #{os_name} on API Level #{api_lvl} with sdk #{sdk}"
end