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

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dnsimple::Struct::Base

Instance Attribute Details

#descriptionObject

A description of the extended attribute



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

def description
  @description
end

#nameObject

The extended attribute name



18
19
20
# File 'lib/dnsimple/struct/extended_attribute.rb', line 18

def name
  @name
end

#requiredObject

Boolean indicating if the extended attribute is required



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

def required
  @required
end

Instance Method Details

#optionsObject



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

def options
  @options ||= []
end

#options=(opts) ⇒ Object



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

def options=(opts)
  @options = opts.map do |opt|
    ExtendedAttribute::Option.new(opt)
  end
end