Class: Mailosaur::Models::ServerCreateOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_json

Constructor Details

#initialize(data = {}) ⇒ ServerCreateOptions

Returns a new instance of ServerCreateOptions.



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

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

Instance Attribute Details

#nameString

Returns A name used to identify the server.

Returns:

  • (String)

    A name used to identify the server.



9
10
11
# File 'lib/Mailosaur/models/server_create_options.rb', line 9

def name
  @name
end