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.
-
#options ⇒ Array<Options>
The array of options with possible values for the extended attribute.
-
#required ⇒ Object
Boolean indicating if the extended attribute is required.
Instance Method Summary collapse
-
#initialize ⇒ ExtendedAttribute
constructor
A new instance of ExtendedAttribute.
Constructor Details
#initialize ⇒ ExtendedAttribute
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
#description ⇒ Object
A description of the extended attribute
23 24 25 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 23 def description @description end |
#name ⇒ Object
The extended attribute name
20 21 22 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 20 def name @name end |
#options ⇒ Array<Options>
Returns 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 end |
#required ⇒ Object
Boolean indicating if the extended attribute is required
26 27 28 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 26 def required @required end |