Class: DNSimple::ExtendedAttribute::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsimple/extended_attribute.rb

Overview

An option for an extended attribute

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

A long description of the option



13
14
15
# File 'lib/dnsimple/extended_attribute.rb', line 13

def description
  @description
end

#titleObject

The option name



7
8
9
# File 'lib/dnsimple/extended_attribute.rb', line 7

def title
  @title
end

#valueObject

The option value



10
11
12
# File 'lib/dnsimple/extended_attribute.rb', line 10

def value
  @value
end