Class: Sendgrid::Web::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/sendgrid/web/client.rb

Direct Known Subclasses

Blocks, Bounces

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configObject



6
7
8
# File 'lib/sendgrid/web/client.rb', line 6

def self.config
  @@config
end

.configure(&block) ⇒ Object



2
3
4
# File 'lib/sendgrid/web/client.rb', line 2

def self.configure(&block)
  @@config = Sendgrid::Web::Configurator.new(&block)
end

Instance Method Details

#configObject



10
11
12
# File 'lib/sendgrid/web/client.rb', line 10

def config
  @@config ||= Sendgrid::Web::Configurator.new
end