Class: Registrar::PurchaseOptions
- Inherits:
-
Object
- Object
- Registrar::PurchaseOptions
- Defined in:
- lib/registrar/purchase_options.rb
Instance Attribute Summary collapse
- #extended_attributes ⇒ Object
-
#language ⇒ Object
Returns the value of attribute language.
- #name_servers ⇒ Object
- #number_of_years ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#extended_attributes ⇒ Object
20 21 22 |
# File 'lib/registrar/purchase_options.rb', line 20 def extended_attributes @extended_attributes ||= [] end |
#language ⇒ Object
Returns the value of attribute language.
6 7 8 |
# File 'lib/registrar/purchase_options.rb', line 6 def language @language end |
#name_servers ⇒ Object
12 13 14 |
# File 'lib/registrar/purchase_options.rb', line 12 def name_servers @name_servers ||= [] end |
#number_of_years ⇒ Object
24 25 26 |
# File 'lib/registrar/purchase_options.rb', line 24 def number_of_years @number_of_years end |
Instance Method Details
#has_extended_attributes? ⇒ Boolean
16 17 18 |
# File 'lib/registrar/purchase_options.rb', line 16 def has_extended_attributes? !extended_attributes.empty? end |
#has_name_servers? ⇒ Boolean
8 9 10 |
# File 'lib/registrar/purchase_options.rb', line 8 def has_name_servers? !name_servers.empty? end |