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.



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

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.



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

def default_subdomain
  @default_subdomain
end

#descriptionString

Returns The service description.

Returns:

  • (String)

    The service description.



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

def description
  @description
end

#idInteger

Returns The service ID in DNSimple.

Returns:

  • (Integer)

    The service ID in DNSimple.



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

def id
  @id
end

#nameString

Returns The service name.

Returns:

  • (String)

    The service name.



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

def name
  @name
end

#requires_setupBoolean

Returns Whether the service requires extra setup.

Returns:

  • (Boolean)

    Whether the service requires extra setup.



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

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.



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

def settings
  @settings
end

#setup_descriptionString

Returns The service setup description.

Returns:

  • (String)

    The service setup description.



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

def setup_description
  @setup_description
end

#sidString

Returns A string ID for the service.

Returns:

  • (String)

    A string ID for the service.



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

def sid
  @sid
end