@@ -249,8 +249,11 @@ class TelSelections
@region = state
end
- def option- op = Blather::Stanza::X::Field::Option.new(value: tel, label: to_s)
+ def option(label: nil)
+ op = Blather::Stanza::X::Field::Option.new(
+ value: tel,
+ label: label || to_s
+ )
op << reference
op
end
@@ -301,6 +304,10 @@ class TelSelections
@price = price || 0
end
+ def option
+ super(label: to_s)
+ end
+
# Creates and inserts transaction charging the customer
# for the phone number. If price <= 0 this is a noop.
# This method never checks customer balance.