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

- old
+ new

@@ -1,27 +1,29 @@ module CTM class Source < Base attr_reader :id, :account_id - attr_accessor :name, :referring_url, :landing_url, :position, :online + attr_accessor :name, :referring_url, :landing_url, :position, :online, :crm_tag 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'] + @crm_tag = data['crm_tag'] end def save options = { - :name => @name, - :position => @position, - :online => @online, + :name => @name, + :position => @position, + :online => @online, :referring_url => @referring_url, - :landing_url => @landing_url + :landing_url => @landing_url, + :crm_tag => @crm_tag } super(options) end def numbers(options={})