Class: Dnsimple::Struct::ExtendedAttribute
- Defined in:
- lib/dnsimple/struct/extended_attribute.rb
Defined Under Namespace
Classes: Option
Instance Attribute Summary collapse
-
#description ⇒ Object
A description of the extended attribute.
-
#name ⇒ Object
The extended attribute name.
-
#required ⇒ Object
Boolean indicating if the extended attribute is required.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dnsimple::Struct::Base
Instance Attribute Details
#description ⇒ Object
A description of the extended attribute
21 22 23 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 21 def description @description end |
#name ⇒ Object
The extended attribute name
18 19 20 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 18 def name @name end |
#required ⇒ Object
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
#options ⇒ Object
26 27 28 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 26 def @options ||= [] end |
#options=(opts) ⇒ Object
30 31 32 33 34 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 30 def (opts) @options = opts.map do |opt| ExtendedAttribute::Option.new(opt) end end |