Class: Sendgrid::Web::Configurator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Configurator

Returns a new instance of Configurator.

Yields:

  • (_self)

Yield Parameters:



4
5
6
7
# File 'lib/sendgrid/web/configurator.rb', line 4

def initialize(&block)
  self.root_url = 'https://sendgrid.com'
  yield self if block_given?
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#root_urlObject

Returns the value of attribute root_url.



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

def root_url
  @root_url
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end