Sha256: e22adefbd73867a9dbafe3db4bc94057a4b69eddd8eef662f69383eb20068bd4
Contents?: true
Size: 864 Bytes
Versions: 5
Compression:
Stored size: 864 Bytes
Contents
module CTM class Source < Base attr_reader :id, :account_id attr_accessor :name, :referring_url, :landing_url, :position, :online def initialize(data, token=nil) super(data, token) @id = data['id'] @account_id = data['account_id'] @name = data['name'] @referring_url = data['referring_url'] @landing_url = data['landing_url'] @position = data['position'] @online = data['online'] end def save options = { :name => @name, :position => @position, :online => @online, :referring_url => @referring_url, :landing_url => @landing_url } super(options) end def numbers(options={}) CTM::NumberList.new(options.merge(:account_id => @account_id, :source_id => @id), @token) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ctm-0.5.1 | lib/ctm/source.rb |
ctm-0.5.0 | lib/ctm/source.rb |
ctm-0.4.4 | lib/ctm/source.rb |
ctm-0.4.2 | lib/ctm/source.rb |
ctm-0.0.1 | lib/ctm/source.rb |