Class: Dnsimple::Struct::Service
- Defined in:
- lib/dnsimple/struct/service.rb
Defined Under Namespace
Classes: Setting
Instance Attribute Summary collapse
-
#default_subdomain ⇒ String
The default subdomain where the service will be applied.
-
#description ⇒ String
The service description.
-
#id ⇒ Integer
The service ID in DNSimple.
-
#name ⇒ String
The service name.
-
#requires_setup ⇒ Boolean
Whether the service requires extra setup.
-
#settings ⇒ Array<Settings>
The array of settings to setup this service, if setup is required.
-
#setup_description ⇒ String
The service setup description.
-
#sid ⇒ String
A string ID for the service.
Instance Method Summary collapse
-
#initialize ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize ⇒ Service
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_subdomain ⇒ String
Returns 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 |
#description ⇒ String
Returns The service description.
38 39 40 |
# File 'lib/dnsimple/struct/service.rb', line 38 def description @description end |
#id ⇒ Integer
Returns The service ID in DNSimple.
29 30 31 |
# File 'lib/dnsimple/struct/service.rb', line 29 def id @id end |
#name ⇒ String
Returns The service name.
32 33 34 |
# File 'lib/dnsimple/struct/service.rb', line 32 def name @name end |
#requires_setup ⇒ Boolean
Returns Whether the service requires extra setup.
44 45 46 |
# File 'lib/dnsimple/struct/service.rb', line 44 def requires_setup @requires_setup end |
#settings ⇒ Array<Settings>
Returns 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_description ⇒ String
Returns The service setup description.
41 42 43 |
# File 'lib/dnsimple/struct/service.rb', line 41 def setup_description @setup_description end |
#sid ⇒ String
Returns A string ID for the service.
35 36 37 |
# File 'lib/dnsimple/struct/service.rb', line 35 def sid @sid end |