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.



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

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.



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

def default_subdomain
  @default_subdomain
end

#descriptionString

Returns The service description.

Returns:

  • (String)

    The service description.



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

def description
  @description
end

#idFixnum

Returns The service ID in DNSimple.

Returns:

  • (Fixnum)

    The service ID in DNSimple.



27
28
29
# File 'lib/dnsimple/struct/service.rb', line 27

def id
  @id
end

#nameString

Returns The service name.

Returns:

  • (String)

    The service name.



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

def name
  @name
end

#requires_setupBoolean

Returns Whether the service requires extra setup.

Returns:

  • (Boolean)

    Whether the service requires extra setup.



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

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.



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

def settings
  @settings
end

#setup_descriptionString

Returns The service setup description.

Returns:

  • (String)

    The service setup description.



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

def setup_description
  @setup_description
end

#short_nameString

Returns A short name for the service.

Returns:

  • (String)

    A short name for the service.



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

def short_name
  @short_name
end