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.



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

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

Instance Attribute Details

#descriptionObject

A description of the extended attribute



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

def description
  @description
end

#nameObject

The extended attribute name



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

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



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

def options
  @options
end

#requiredObject

Boolean indicating if the extended attribute is required



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

def required
  @required
end