Class: Registrar::Provider::Enom::ExtendedAttribute

Inherits:
Object
  • Object
show all
Includes:
ExtendedAttributeCA, ExtendedAttributeIO, ExtendedAttributeUS
Defined in:
lib/registrar/provider/enom/extended_attribute.rb

Overview

Wrapper around the generic extended attribute that resolves symbolic values to their Enom-specific values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ExtendedAttributeIO

#io_names, #io_values

Methods included from ExtendedAttributeUS

#us_names, #us_values

Constructor Details

#initialize(extended_attribute) ⇒ ExtendedAttribute

Returns a new instance of ExtendedAttribute.



16
17
18
# File 'lib/registrar/provider/enom/extended_attribute.rb', line 16

def initialize(extended_attribute)
  @extended_attribute = extended_attribute
end

Instance Attribute Details

#extended_attributeObject (readonly)

Returns the value of attribute extended_attribute.



15
16
17
# File 'lib/registrar/provider/enom/extended_attribute.rb', line 15

def extended_attribute
  @extended_attribute
end

Instance Method Details

#nameObject



20
21
22
# File 'lib/registrar/provider/enom/extended_attribute.rb', line 20

def name
  resolve_name(extended_attribute.tld, extended_attribute.name)
end

#valueObject



23
24
25
# File 'lib/registrar/provider/enom/extended_attribute.rb', line 23

def value
  resolve_value(extended_attribute.tld, extended_attribute.value)
end