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.
53 54 55 56 |
# File 'lib/dnsimple/struct/service.rb', line 53 def initialize(*) super @settings ||= [] end |
Instance Attribute Details
#default_subdomain ⇒ String
Returns 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 |
#description ⇒ String
Returns The service description.
39 40 41 |
# File 'lib/dnsimple/struct/service.rb', line 39 def description @description end |
#id ⇒ Integer
Returns The service ID in DNSimple.
30 31 32 |
# File 'lib/dnsimple/struct/service.rb', line 30 def id @id end |
#name ⇒ String
Returns The service name.
33 34 35 |
# File 'lib/dnsimple/struct/service.rb', line 33 def name @name end |
#requires_setup ⇒ Boolean
Returns Whether the service requires extra setup.
45 46 47 |
# File 'lib/dnsimple/struct/service.rb', line 45 def requires_setup @requires_setup end |
#settings ⇒ Array<Settings>
Returns 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_description ⇒ String
Returns The service setup description.
42 43 44 |
# File 'lib/dnsimple/struct/service.rb', line 42 def setup_description @setup_description end |
#sid ⇒ String
Returns A string ID for the service.
36 37 38 |
# File 'lib/dnsimple/struct/service.rb', line 36 def sid @sid end |