Class: Sendgrid::API::Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Newsletter::Schedule

#schedule

Methods included from Newsletter::Recipients

#recipients

Methods included from Newsletter::MarketingEmails

#marketing_emails

Methods included from Newsletter::Categories

#categories

Methods included from Newsletter::SenderAddresses

#sender_addresses

Methods included from Newsletter::Emails

#emails

Methods included from Newsletter::Lists

#lists

Methods included from Web::Mail

#mail

Methods included from Web::Stats

#stats

Methods included from Web::Profile

#profile

Constructor Details

#initialize(user, key) ⇒ Client

Returns a new instance of Client.



30
31
32
33
# File 'lib/sendgrid/api/client.rb', line 30

def initialize(user, key)
  @user = user
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



28
29
30
# File 'lib/sendgrid/api/client.rb', line 28

def key
  @key
end

#userObject (readonly)

Returns the value of attribute user.



28
29
30
# File 'lib/sendgrid/api/client.rb', line 28

def user
  @user
end