Class: Registrar::PurchaseOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/registrar/purchase_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#extended_attributesObject



20
21
22
# File 'lib/registrar/purchase_options.rb', line 20

def extended_attributes
  @extended_attributes ||= []
end

#languageObject

Returns the value of attribute language.



6
7
8
# File 'lib/registrar/purchase_options.rb', line 6

def language
  @language
end

#name_serversObject



12
13
14
# File 'lib/registrar/purchase_options.rb', line 12

def name_servers
  @name_servers ||= []
end

#number_of_yearsObject



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

Returns:

  • (Boolean)


16
17
18
# File 'lib/registrar/purchase_options.rb', line 16

def has_extended_attributes?
  !extended_attributes.empty?
end

#has_name_servers?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/registrar/purchase_options.rb', line 8

def has_name_servers?
  !name_servers.empty?
end