lib/ctm/number.rb in ctm-0.5.1 vs lib/ctm/number.rb in ctm-0.5.3

- old
+ new

@@ -12,11 +12,22 @@ @formatted = data['formatted'] @split = data['split'] @routing = data['routing'] end + def save + options = { + :name => @name, + } + super(options) + end + def receiving_numbers(options={}) CTM::ReceivingNumberList.new(options.merge(:account_id => @account_id, :number_id => @id), @token) + end + + def target_numbers(options={}) + CTM::TargetNumberList.new(options.merge(:account_id => @account_id, :number_id => @id), @token) end def source end