Class: Sendgrid::Web::Parameters

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

Instance Method Summary collapse

Instance Method Details

#[]=(key, value) ⇒ Object



3
4
5
# File 'lib/sendgrid/web/parameters.rb', line 3

def []=(key, value)
  super(key, _cleanse_value(value))
end

#merge(hash = {}) ⇒ Object



11
12
13
# File 'lib/sendgrid/web/parameters.rb', line 11

def merge(hash = {})
  super(_cleanse(hash))
end

#merge!(hash = {}) ⇒ Object



7
8
9
# File 'lib/sendgrid/web/parameters.rb', line 7

def merge!(hash = {})
  super(_cleanse(hash))
end

#replace(hash = {}) ⇒ Object



15
16
17
# File 'lib/sendgrid/web/parameters.rb', line 15

def replace(hash = {})
  super(_cleanse(hash))
end

#store(key, value) ⇒ Object



19
20
21
# File 'lib/sendgrid/web/parameters.rb', line 19

def store(key, value)
  super(key, _cleanse_value(value))
end

#update(hash = {}) ⇒ Object



23
24
25
# File 'lib/sendgrid/web/parameters.rb', line 23

def update(hash = {})
  super(_cleanse(hash))
end