Class: Mailosaur::Models::Device
- Defined in:
- lib/Mailosaur/models/device.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier for the device.
-
#name ⇒ String
The name of the device.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Device
constructor
A new instance of Device.
Methods inherited from BaseModel
Constructor Details
#initialize(data = {}) ⇒ Device
Returns a new instance of Device.
4 5 6 7 |
# File 'lib/Mailosaur/models/device.rb', line 4 def initialize(data = {}) @id = data['id'] @name = data['name'] end |
Instance Attribute Details
#id ⇒ String
Returns Unique identifier for the device.
10 11 12 |
# File 'lib/Mailosaur/models/device.rb', line 10 def id @id end |
#name ⇒ String
Returns The name of the device.
13 14 15 |
# File 'lib/Mailosaur/models/device.rb', line 13 def name @name end |