Sha256: 9d7fe4485a61d44ed4b5bbfee989794a8021981ef52dddbcf0133ee5c18cf161
Contents?: true
Size: 632 Bytes
Versions: 5
Compression:
Stored size: 632 Bytes
Contents
module CTM class Number < Base attr_reader :id, :account_id attr_accessor :name, :number, :formatted, :split, :routing def initialize(data, token=nil) super(data, token) @id = data['id'] @account_id = data['account_id'] @name = data['name'] @number = data['number'] @formatted = data['formatted'] @split = data['split'] @routing = data['routing'] end def receiving_numbers(options={}) CTM::ReceivingNumberList.new(options.merge(:account_id => @account_id, :number_id => @id), @token) end def source end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ctm-0.5.1 | lib/ctm/number.rb |
ctm-0.5.0 | lib/ctm/number.rb |
ctm-0.4.4 | lib/ctm/number.rb |
ctm-0.4.2 | lib/ctm/number.rb |
ctm-0.0.1 | lib/ctm/number.rb |