Class: Ios::Devices::Model

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

Overview

Represents an iOS device model. Every device has a type and name and some of them also have extra information (Revision, Wi-fi, etc.)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_type, name, extra = nil) ⇒ Model

Returns a new instance of Model.



10
11
12
13
14
# File 'lib/ios/devices/model.rb', line 10

def initialize(device_type, name, extra = nil)
  @device_type = device_type
  @name = name
  @extra = extra
end

Instance Attribute Details

#device_typeObject

Returns the value of attribute device_type.



8
9
10
# File 'lib/ios/devices/model.rb', line 8

def device_type
  @device_type
end

#extraObject

Returns the value of attribute extra.



8
9
10
# File 'lib/ios/devices/model.rb', line 8

def extra
  @extra
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/ios/devices/model.rb', line 8

def name
  @name
end