Class: Registrar::Provider::Enom::ExtendedAttribute
- Inherits:
-
Object
- Object
- Registrar::Provider::Enom::ExtendedAttribute
- 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
-
#extended_attribute ⇒ Object
readonly
Returns the value of attribute extended_attribute.
Instance Method Summary collapse
-
#initialize(extended_attribute) ⇒ ExtendedAttribute
constructor
A new instance of ExtendedAttribute.
- #name ⇒ Object
- #value ⇒ Object
Methods included from ExtendedAttributeIO
Methods included from ExtendedAttributeUS
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_attribute ⇒ Object (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
#name ⇒ Object
20 21 22 |
# File 'lib/registrar/provider/enom/extended_attribute.rb', line 20 def name resolve_name(extended_attribute.tld, extended_attribute.name) end |
#value ⇒ Object
23 24 25 |
# File 'lib/registrar/provider/enom/extended_attribute.rb', line 23 def value resolve_value(extended_attribute.tld, extended_attribute.value) end |