Sha256: 60d5ffe7165c18f7252c81c29835c4090e363a05999eabf9de6dbd3f19a54604

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 Bytes

Contents

# Client is defined in default.rb which is automatically generated.
# In this file we add additional methods to the Client class.
class Client
  attr_accessor :clientID
  attr_accessor :name

  def initialize(clientID = nil, name = nil)
    @cm = Campaigning.new
    self.clientID = clientID
    self.name = name
  end
  
  # TODO: Refactor this method!
  def lists
    response = @cm.soap.getClientLists(:apiKey => CAMPAIGN_MONITOR_API_KEY, :clientID => self.clientID)
    response.client_GetListsResult
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gnumarcelo-campaigning-0.2.0 lib/campaigning/types/client.rb