Class: Dnsimple::Struct::Service

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/service.rb

Defined Under Namespace

Classes: Setting

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeService

Returns a new instance of Service.



52
53
54
55
# File 'lib/dnsimple/struct/service.rb', line 52

def initialize(*)
  super
  @settings ||= []
end

Instance Attribute Details

#default_subdomainString

Returns The default subdomain where the service will be applied.

Returns:

  • (String)

    The default subdomain where the service will be applied.



47
48
49
# File 'lib/dnsimple/struct/service.rb', line 47

def default_subdomain
  @default_subdomain
end

#descriptionString

Returns The service description.

Returns:

  • (String)

    The service description.



38
39
40
# File 'lib/dnsimple/struct/service.rb', line 38

def description
  @description
end

#idInteger

Returns The service ID in DNSimple.

Returns:

  • (Integer)

    The service ID in DNSimple.



29
30
31
# File 'lib/dnsimple/struct/service.rb', line 29

def id
  @id
end

#nameString

Returns The service name.

Returns:

  • (String)

    The service name.



32
33
34
# File 'lib/dnsimple/struct/service.rb', line 32

def name
  @name
end

#requires_setupBoolean

Returns Whether the service requires extra setup.

Returns:

  • (Boolean)

    Whether the service requires extra setup.



44
45
46
# File 'lib/dnsimple/struct/service.rb', line 44

def requires_setup
  @requires_setup
end

#settingsArray<Settings>

Returns The array of settings to setup this service, if setup is required.

Returns:

  • (Array<Settings>)

    The array of settings to setup this service, if setup is required.



50
51
52
# File 'lib/dnsimple/struct/service.rb', line 50

def settings
  @settings
end

#setup_descriptionString

Returns The service setup description.

Returns:

  • (String)

    The service setup description.



41
42
43
# File 'lib/dnsimple/struct/service.rb', line 41

def setup_description
  @setup_description
end

#sidString

Returns A string ID for the service.

Returns:

  • (String)

    A string ID for the service.



35
36
37
# File 'lib/dnsimple/struct/service.rb', line 35

def sid
  @sid
end