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.
32 33 34 35 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 32 def initialize(*) super @options ||= [] end |
Instance Attribute Details
#description ⇒ Object
A description of the extended attribute
24 25 26 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 24 def description @description end |
#name ⇒ Object
The extended attribute name
21 22 23 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 21 def name @name end |
#options ⇒ Array<Options>
Returns 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 end |
#required ⇒ Object
Boolean indicating if the extended attribute is required
27 28 29 |
# File 'lib/dnsimple/struct/extended_attribute.rb', line 27 def required @required end |