Module: Sendmux::Core::Headers
- Defined in:
- lib/sendmux/core/headers.rb
Class Method Summary collapse
- .conditional(if_match: nil, if_none_match: nil) ⇒ Object
- .idempotency_key(value) ⇒ Object
- .if_match(value) ⇒ Object
- .if_none_match(value) ⇒ Object
Class Method Details
.conditional(if_match: nil, if_none_match: nil) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/sendmux/core/headers.rb', line 18 def self.conditional(if_match: nil, if_none_match: nil) {}.tap do |headers| headers[:if_match] = if_match if if_match headers[:if_none_match] = if_none_match if if_none_match end end |
.idempotency_key(value) ⇒ Object
6 7 8 |
# File 'lib/sendmux/core/headers.rb', line 6 def self.idempotency_key(value) { idempotency_key: value } end |
.if_match(value) ⇒ Object
10 11 12 |
# File 'lib/sendmux/core/headers.rb', line 10 def self.if_match(value) { if_match: value } end |
.if_none_match(value) ⇒ Object
14 15 16 |
# File 'lib/sendmux/core/headers.rb', line 14 def self.if_none_match(value) { if_none_match: value } end |