Class: Mailosaur::Models::DeviceCreateOptions

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/Mailosaur/models/device_create_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

Constructor Details

#initialize(data = {}) ⇒ DeviceCreateOptions

Returns a new instance of DeviceCreateOptions.



4
5
6
7
# File 'lib/Mailosaur/models/device_create_options.rb', line 4

def initialize(data = {})
  @name = data['name']
  @shared_secret = data['shared_secret']
end

Instance Attribute Details

#nameString

Returns A name used to identify the device.

Returns:

  • (String)

    A name used to identify the device.



10
11
12
# File 'lib/Mailosaur/models/device_create_options.rb', line 10

def name
  @name
end

#shared_secretString

Returns The base32-encoded shared secret for this device.

Returns:

  • (String)

    The base32-encoded shared secret for this device.



13
14
15
# File 'lib/Mailosaur/models/device_create_options.rb', line 13

def shared_secret
  @shared_secret
end