Class: Pardot::Client
- Inherits:
-
Object
- Object
- Pardot::Client
- Includes:
- HTTParty, Authentication, Http, Objects::Emails, Objects::ListMemberships, Objects::Lists, Objects::Opportunities, Objects::ProspectAccounts, Objects::Prospects, Objects::Users, Objects::VisitorActivities, Objects::Visitors, Objects::Visits
- Defined in:
- lib/pardot/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#email ⇒ Object
Returns the value of attribute email.
-
#format ⇒ Object
Returns the value of attribute format.
-
#password ⇒ Object
Returns the value of attribute password.
-
#user_key ⇒ Object
Returns the value of attribute user_key.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(email, password, user_key, version = 3) ⇒ Client
constructor
A new instance of Client.
Methods included from Objects::VisitorActivities
Methods included from Objects::Visits
Methods included from Objects::Visitors
Methods included from Objects::Users
Methods included from Objects::ProspectAccounts
Methods included from Objects::Prospects
Methods included from Objects::Opportunities
Methods included from Objects::ListMemberships
Methods included from Objects::Lists
Methods included from Objects::Emails
Methods included from Http
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_key ⇒ Object
Returns the value of attribute api_key.
23 24 25 |
# File 'lib/pardot/client.rb', line 23 def api_key @api_key end |
#email ⇒ Object
Returns the value of attribute email.
23 24 25 |
# File 'lib/pardot/client.rb', line 23 def email @email end |
#format ⇒ Object
Returns the value of attribute format.
23 24 25 |
# File 'lib/pardot/client.rb', line 23 def format @format end |
#password ⇒ Object
Returns the value of attribute password.
23 24 25 |
# File 'lib/pardot/client.rb', line 23 def password @password end |
#user_key ⇒ Object
Returns the value of attribute user_key.
23 24 25 |
# File 'lib/pardot/client.rb', line 23 def user_key @user_key end |
#version ⇒ Object
Returns the value of attribute version.
23 24 25 |
# File 'lib/pardot/client.rb', line 23 def version @version end |