Class: Dnsimple::Struct::ExtendedAttribute

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/extended_attribute.rb

Defined Under Namespace

Classes: Option

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExtendedAttribute

Returns a new instance of ExtendedAttribute.



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

def initialize(*)
  super
  @options ||= []
end

Instance Attribute Details

#descriptionObject

A description of the extended attribute



24
25
26
# File 'lib/dnsimple/struct/extended_attribute.rb', line 24

def description
  @description
end

#nameObject

The extended attribute name



21
22
23
# File 'lib/dnsimple/struct/extended_attribute.rb', line 21

def name
  @name
end

#optionsArray<Options>

Returns The array of options with possible values for the extended attribute.

Returns:

  • (Array<Options>)

    The array of options with possible values for the extended attribute



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

def options
  @options
end

#requiredObject

Boolean indicating if the extended attribute is required



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

def required
  @required
end