Class: DNSimple::ExtendedAttribute::Option
- Inherits:
-
Object
- Object
- DNSimple::ExtendedAttribute::Option
- Defined in:
- lib/dnsimple/extended_attribute.rb
Overview
An option for an extended attribute
Instance Attribute Summary collapse
-
#description ⇒ Object
A long description of the option.
-
#title ⇒ Object
The option name.
-
#value ⇒ Object
The option value.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Option
constructor
:nodoc:.
Constructor Details
#initialize(attributes) ⇒ Option
:nodoc:
16 17 18 19 20 21 |
# File 'lib/dnsimple/extended_attribute.rb', line 16 def initialize(attributes) attributes.each do |key, value| m = "#{key}=".to_sym self.send(m, value) if self.respond_to?(m) end end |
Instance Attribute Details
#description ⇒ Object
A long description of the option
13 14 15 |
# File 'lib/dnsimple/extended_attribute.rb', line 13 def description @description end |
#title ⇒ Object
The option name
7 8 9 |
# File 'lib/dnsimple/extended_attribute.rb', line 7 def title @title end |
#value ⇒ Object
The option value
10 11 12 |
# File 'lib/dnsimple/extended_attribute.rb', line 10 def value @value end |