Class: Sendgrid::API::Client

Inherits:
Object
  • Object
show all
Includes:
Web::Profile, Web::Stats
Defined in:
lib/sendgrid/api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Web::Stats

#stats

Methods included from Web::Profile

#profile

Constructor Details

#initialize(user, key) ⇒ Client

Returns a new instance of Client.



14
15
16
17
# File 'lib/sendgrid/api/client.rb', line 14

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



12
13
14
# File 'lib/sendgrid/api/client.rb', line 12

def key
  @key
end

#userObject (readonly)

Returns the value of attribute user.



12
13
14
# File 'lib/sendgrid/api/client.rb', line 12

def user
  @user
end