Class: PhoneNumber
- Inherits:
-
Object
- Object
- PhoneNumber
- Defined in:
- lib/order_information.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(option) ⇒ PhoneNumber
constructor
A new instance of PhoneNumber.
- #list_item ⇒ Object
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
#number ⇒ Object
Returns the value of attribute number.
107 108 109 |
# File 'lib/order_information.rb', line 107 def number @number end |
#value ⇒ Object
Returns the value of attribute value.
107 108 109 |
# File 'lib/order_information.rb', line 107 def value @value end |
Instance Method Details
#list_item ⇒ Object
114 115 116 |
# File 'lib/order_information.rb', line 114 def list_item number end |