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