Class: PhoneNumber

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option) ⇒ PhoneNumber

Returns a new instance of PhoneNumber.



109
110
111
112
# File 'lib/order_information.rb', line 109

def initialize(option)
  self.number = option.text
  self.value = option["value"]
end

Instance Attribute Details

#numberObject

Returns the value of attribute number.



107
108
109
# File 'lib/order_information.rb', line 107

def number
  @number
end

#valueObject

Returns the value of attribute value.



107
108
109
# File 'lib/order_information.rb', line 107

def value
  @value
end

Instance Method Details

#list_itemObject



114
115
116
# File 'lib/order_information.rb', line 114

def list_item
  number
end