Sha256: 860d41d6242a86f79ba4d88d132d98fabb540ad95f4181680ced946182b18305

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

module CTM
  class TargetNumber < Base
    attr_reader :id, :account_id
    attr_accessor :name, :number, :display_number, :exact, :tracking_numbers

    def initialize(data, token=nil)
      super(data, token)
      @id               = data['id']
      @account_id       = data['account_id']
      @name             = data['name']
      @number           = data['number']
      @display_number   = data['display_number']
      @exact            = data['exact']
      @tracking_numbers = data['tracking_numbers']
    end

    def save
      options = {
        :name => @name,
        :number => @number
      }
      super(options)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctm-0.5.4 lib/ctm/target_number.rb
ctm-0.5.3 lib/ctm/target_number.rb