Class: Pardot::Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Objects::VisitorActivities

#visitor_activities

Methods included from Objects::Visits

#visits

Methods included from Objects::Visitors

#visitors

Methods included from Objects::Users

#users

Methods included from Objects::ProspectAccounts

#prospect_accounts

Methods included from Objects::Prospects

#prospects

Methods included from Objects::Opportunities

#opportunities

Methods included from Objects::ListMemberships

#list_memberships

Methods included from Objects::Lists

#lists

Methods included from Objects::Emails

#emails

Methods included from Http

#get, #post

Methods included from Authentication

#authenticate, #authenticated?, #reauthenticate

Constructor Details

#initialize(email, password, user_key, version = 3) ⇒ Client

Returns a new instance of Client.



25
26
27
28
29
30
31
32
# File 'lib/pardot/client.rb', line 25

def initialize email, password, user_key, version = 3
  @email = email
  @password = password
  @user_key = user_key
  @version = version

  @format = "simple"
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



23
24
25
# File 'lib/pardot/client.rb', line 23

def api_key
  @api_key
end

#emailObject

Returns the value of attribute email.



23
24
25
# File 'lib/pardot/client.rb', line 23

def email
  @email
end

#formatObject

Returns the value of attribute format.



23
24
25
# File 'lib/pardot/client.rb', line 23

def format
  @format
end

#passwordObject

Returns the value of attribute password.



23
24
25
# File 'lib/pardot/client.rb', line 23

def password
  @password
end

#user_keyObject

Returns the value of attribute user_key.



23
24
25
# File 'lib/pardot/client.rb', line 23

def user_key
  @user_key
end

#versionObject

Returns the value of attribute version.



23
24
25
# File 'lib/pardot/client.rb', line 23

def version
  @version
end